Products Technologies Demo Docs Blog Support Company

Printing Without the Status Dialog

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 =…

Printing Without the Status Dialog

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.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

.NETPrintingSample

Batch Printing: How to Print Documents in One Print Job

A typical requirement when printing loads of documents is managing the print jobs. A group of separate documents might be subsumed in a single print job. We just published a new sample in our…


.NETPrintingSample

New Sample: Printing to Different Paper Trays

We just released a new sample for TX Text Control .NET for Windows Forms. This sample shows how to print specific pages of a document to different paper sources of the current printer. The sample…


.NETPrintingSample

Printing into a PrintPreview Control

TX Text Control .NET for Windows Forms implements a print preview dialog that can be easily opened using the PrintPreview method. Sometimes, it is necessary to customize the print preview dialog…


.NETPrintingSample

Landscape Printing with a PrintDocument

In one of the Print method's overload, TX Text Control .NET for Windows Forms allows a PrintDocument to be passed. The PrintDocument class is used to send output to a printer. In order to use…


.NETPrintingSample

Printing into a PrintDocument

TX Text Control .NET for Windows Forms's Print method introduces many advantages over the Print method of the ActiveX control. It enables you to print into a PrintDocument of the…