How do I bypass this status dialog in PrintPreview?

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
 
A

Andrew Smith \(Infragistics\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top