TX Text Control .NET Server

FormattingPrinter Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.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; }

Examples

In the current ASP.NET Core integration, FormattingPrinter is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.FormattingPrinter = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.FormattingPrinter))
{
    Console.WriteLine($"Formatting Printer: {textControlSettings.FormattingPrinter}");
}