FormattingPrinter Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. 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
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}");
}textControlSettings.FormattingPrinter = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.FormattingPrinter) Then
Console.WriteLine($"Formatting Printer: {textControlSettings.FormattingPrinter}")
End If