Disabling Printing Status Message/Form

ayozzhero

Well-known member
Joined
Apr 6, 2005
Messages
186
Location
Malaysia
Programming Experience
1-3
I am using Printing.PrintDocument. Whenever I call the Print method, there will be a status form popping automatically. Can I disable this, or prevent this from happening?
 
PrintDocument uses PrintControllerWithStatusDialog class (System.Windows.Forms namespace) by default, PrintPreview components use PreviewPrintController class (System.Drawing.Printing namespace). You can for example use the StandardPrintController instead before you call Print method, this doesn't display a status window.
VB.NET:
PrintDocument1.PrintController = New Printing.StandardPrintController
PrintDocument1.Print()
 
Never knew about the StandardPrintController. Everywhere I go, the only sample given is the Printing.PrintDocument.

I will try this one. Thanks a lot sir!
 
Back
Top