TX Sheet Control

PrintContext Type

Interface

Public type for PrintContext.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Syntax

type PrintContext = Omit<PrintLayoutOptions, 'rowHeights'>;

Members

Properties

PropertyDescription
dateThe date value of PrintContext.
fileNameThe fileName value of PrintContext.
filePathThe filePath value of PrintContext.
localeThe locale value of PrintContext.

Examples

Pass the PrintContext value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { PrintContext } from '@txtextcontrol/tx-sheet-control';

function inspectPrintContextDate(printContext: PrintContext) {
    const value = printContext['date'];
    console.log('PrintContext.date', value);
}

See Also