HighTechTalks DotNet Forums  

How to lose the "Abort" window when previewing a PrintDocument ?

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss How to lose the "Abort" window when previewing a PrintDocument ? in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Emby
 
Posts: n/a

Default How to lose the "Abort" window when previewing a PrintDocument ? - 04-03-2007 , 09:34 AM






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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.