Printing without the status dialog
Blogged by Björn Meyer on February 07, 2007 and tagged with Printing, Samples, .NET, suppress printing now.
The default print controller of .NET displays a status dialog that shows the status of the printing process like this:
'Page 5 of document'
If you want to print without such a print status dialog, you will need to use the StandardPrintController instead of the default PrintControllerWithStatusDialog. The StandardPrintController is part of the System.Drawing.Printing namespace. The following code prints the content of TX Text Control without such print status dialog:
PrintDocument printDoc = new PrintDocument();
PrintController printCtl = new StandardPrintController();
printDoc.PrintController = printCtl;
textControl1.Print(printDoc);
Feel free to contact me, if you have any questions or would like to discuss further printing possibilities of TX Text Control.


Posted by Justin on Friday, October 12, 2007 at 09:09:55:
Posted by David on Thursday, January 03, 2008 at 15:56:36:
Posted by Björn Meyer on Thursday, January 03, 2008 at 17:09:45: