Printing into a PrintPreview Control
TX Text Control .NET for Windows Forms provides a built-in PrintPreview method, but the standard .NET PrintPreviewDialog offers broader customization options. This sample shows how to use the Print method with a custom PrintController to render document content in that dialog.

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 partly. Using the Print method of TX Text Control, it is possible to print the contents to a standard .NET PrintPreviewDialog.
We have just published a new sample that shows the required steps. Read the full text here:
Related Posts
Batch Printing: How to Print Documents in One Print Job
Batch printing multiple documents as a single print job using TX Text Control relies on a .NET PrintDocument with PrintPage and QueryPageSettings events. Each page is rendered individually via the…
New Sample: Printing to Different Paper Trays
A new TX Text Control .NET for Windows Forms sample demonstrates printing specific document pages to different paper sources on the current printer. The project includes a configurable dialog box…
Printing Without the Status Dialog
The default .NET print controller displays a progress status dialog during printing operations. Replacing PrintControllerWithStatusDialog with StandardPrintController from System.Drawing.Printing…
Landscape Printing with a PrintDocument
When printing with a PrintDocument object in TX Text Control .NET for Windows Forms, page orientation is not transferred automatically. This C# function creates a PrintDocument, compares page…
Printing into a PrintDocument
TX Text Control .NET for Windows Forms prints into a standard .NET PrintDocument object, giving full control over page size, margins, and printer settings. To print a single page, set PrintRange…
