TX Text Control .NET Server

Javascript: TXTextControl.getFormattingPrinter Method

Method|Introduced in 24.0

Description

Returns the name of the currently selected formatting printer by calling a provided callback function. For more information on the formatting printer see function setFormattingPrinter.

Syntax

<void> TXTextControl.getFormattingPrinter(<RequestStringCallback> callback)

Parameters

ParameterDescription
callback

Is called with the name of the currently selected formatting printer as soon as the information has been retrieved from the server.

Examples

The following example demonstrates TXTextControl.getFormattingPrinter in a practical document-editing workflow. It returns the name of the currently selected formatting printer by calling a provided callback function. For more information on the formatting printer see function setFormattingPrinter.

TXTextControl.getFormattingPrinter(
    function(result) {
        console.log("get formatting printer result:", result);
    }
);

Remarks

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