DS Server

Javascript: TXTextControl.setFormattingPrinter Method

Method|Introduced in 24.0

Description

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

<void> TXTextControl.setFormattingPrinter(<string> printerName)

Parameters

ParameterDescription
printerName

The printer name.

Examples

The following example demonstrates TXTextControl.setFormattingPrinter in a practical document-editing workflow. It 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.

TXTextControl.setFormattingPrinter("QuarterlyReport");

Remarks

This property is only relevant when using the Microsoft Windows based synchronization service. The platform independent backend does not support printer specific formatting.