FormattingPrinter Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
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; }Public Property FormattingPrinter As StringExamples
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}");
}textControl.FormattingPrinter = "0.00"
If Not String.IsNullOrWhiteSpace(textControl.FormattingPrinter) Then
Console.WriteLine($"Formatting Printer: {textControl.FormattingPrinter}")
End If