Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Printing FixedDocumentSequence without using the XPS infrastructure.

$
0
0

Hi there,

I'am currently experiencing big problems (OutOfMemory stuff) while trying to print a huge FixedDocumentSequence on Windows 8. It is no problem to construct the sequence from our Visuals and hold it in memory. I have solved this by creating temp documents that are max 100 pages long and merging them into one sequence.

The problem occurs on XpsDocumentWriter.WriteAsync(sequence) and only on Windows 8. There is no code from our side, that can influence this process. There is just a FixedDocumentSequence and the call to WriteAsync. This call causes at some point the OOM. I must say that the document sequence countains 1160 pages, each with a serialized visual for the page content.

Because I asume, that there is somewhere a bug in the XPS printing implementation of Windows 8 (no problems with same code on Windows 7), I need a way to print a FixedDocumentSequence directly without using an XpsDocumentWriter at any point. Does anybody know a way with a PrintQueue and a FixedDocumentSequence in hand?

Thanks for replying.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>