TX Text Control .NET for Windows Forms

FormattingPrinter Property

Property|Introduced in 14.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the name of a printer the text dimensions and capabilities of which are used to format the document. If the document is printed with this printer the displayed and the printed document have the same dimensions. If the property is set to Standard, the system installed standard printer is used to format the document. If the property is set to Display, the font dimensions of the display device are used to format the document. If the specified printer is not installed, the standard printer is used.

Syntax

public string FormattingPrinter { get; set; }

Examples

The following example uses ServerTextControl.FormattingPrinter to configure formatting printer as part of the server text control workflow. The configured value is checked before the workflow continues.

textControl.FormattingPrinter = "0.00";
if (!string.IsNullOrWhiteSpace(textControl.FormattingPrinter))
{
    Console.WriteLine($"Formatting Printer: {textControl.FormattingPrinter}");
}