TX Sheet Control

HeaderFooterSettings.scaleWithDocument Property

Property

The scaleWithDocument value of HeaderFooterSettings.

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

Syntax

scaleWithDocument: boolean

Read through the owning object: owner.scaleWithDocument. Follow the declared mutability and owning object lifetime.

Examples

Configure HeaderFooterSettings for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.

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

const headerFooterSettings: Awaited<
    ReturnType<ServerSheetControl['workbook']['sheets']['get']>
>['print']['settings']['headerFooter'] = {
    oddHeader: 'Invoice',
    oddFooter: 'Invoice',
    evenHeader: 'Invoice',
    evenFooter: 'Invoice',
    firstHeader: 'Invoice',
    firstFooter: 'Invoice',
    differentFirst: false,
    differentOddEven: false,
    alignWithMargins: false,
    scaleWithDocument: false,
};

console.log(headerFooterSettings['scaleWithDocument']);

Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

See Also