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

Print out a paginator with PrintQueue

$
0
0

Hi,

I want to print a paginator (type is inherited of DocumentPaginator) with an instance of a PrintQueue:

var writer = PrintQueue.CreateXpsDocumentWriter(printer);
writer.Write(paginator);

I can configure the printer and I see some reaction (the icon in the system tray appears). But that's all, there is no printing.

When I use the same paginator within the following code

PrintDialog dlg = new PrintDialog();

if (dlg.ShowDialog() == true)
{
  dlg.PrintDocument(paginator, "Sample");
}

everything works fine. What do I wrong?

Best regards,

Torsten



Viewing all articles
Browse latest Browse all 18858

Trending Articles



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