When you give a PrintDocument to a PrintPreviewControl, an "Abort" window is
displayed, and the dialog displays messages "page 1", "page 2", etc. for all
pages in the document. All this occurs *before any* pages are displayed in
the preview control.
According to MSDN docs
(
http://msdn2.microsoft.com/en-us/library/xdt36c58.aspx), it is the
PrintDocument that displays the Abort window:
"During the course of printing from a Windows-based application, the
PrintDocument component will show an abort print dialog box to alert users
to the fact that printing is occurring and to allow the print job to be
canceled"
I assume the window is displayed because the document is "printing" (ie,
providing its page images) to the print preview control.
Our system has a class derived from PrintDocument, and we fully instantiate
it with images of each page. I want to then give that instance of our
derived class to the print preview control for display without the Abort
window being displayed.
Is there any way to suppress the appearance of the Abort window?
Thanks,
Emby