print preview for xps document
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hi all, I am using DocumentViewer Class which exports print method only..I need to have a print preview option too in the winfx application. What's the right way to do this ? I am using vc# 2005 I also need suggestion for the following method In the Handler for print preview menu, I have a private void OnPrintPreview( ) { System.Windows.Forms.PrintPreviewDialog prev = new System.Windows.Forms.PrintPreviewDialog(); prev.document = //Here, How can I get the PrintDocument from DocumentViewer prev.ShowDialog() } DocumentViewer's document member variable is of type IDocumentPaginitorSource. Pls let me know how to get System.Drawing.Printing.PrintDocument type from IDocumentpaginitor. Thanks,