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()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.