How do I bypass this status dialog in PrintPreview?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the PrintPreviewDialog for preview document but status message
dialog box shows up which displays the page # being
printed.

But, I want this status dialog only while printing not while
previewing.

I have tried setting the PrintDocument.PrintController to
StandardPrintController. But the status windows is still popping up.

What is the recommeded way to bypass this status dialog in
PrintPreview?

My code is

PrintPreviewDialog objPrintPreviewDialog = new PrintPreviewDialog();
StandardPrintController pc = new StandardPrintController();
objPrintDocument.PrintController = pc;
objPrintPreviewDialog.Document = objPrintDocument;
objPrintPreviewDialog.ShowDialog();

BLM
 
I don't think there's a way to prevent it. When the printpreviewcontrol,
which is used in the printpreviewdialog to display the preview pages, goes
to generate the pages it creates a printcontrollerwithstatusdialog.

If you're not averse to 3rd party controls, we have a printpreviewcontrol
and printpreviewdialog built from the ground up that's included in our
NetAdvantage product
(http://infragistics.com/Products/NetAdvantage/default.aspx). It has the
same functionality as the inbox control printpreview controls as well as a
bunch of additional features including the ability to choose whether to show
a status dialog; it basically provides all the same kinds of functionality
you can get in printpreviews like word and acrobat - mouse interaction (drag
zoom, hand drag, copy to clipboard, dynamic zoom, etc.), view history,
thumbnails, deferred or immediate scrolling, control over the layout of the
pages, displaying page numbers, etc.
 
Back
Top