TX Text Control .NET for WPF

FormattingPrinter Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.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 TextControl.FormattingPrinter to configure formatting printer as part of the 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}");
}