TX Sheet Control

HeaderFooterSettings Interface

Interface

Excel-compatible text codes: &P page, &N count, &D date, &T time, &A sheet, &F file, &Z path, && literal ampersand. &L/&C/&R select sections.

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

Members

Properties

PropertyDescription
alignWithMarginsThe alignWithMargins value of HeaderFooterSettings.
differentFirstThe differentFirst value of HeaderFooterSettings.
differentOddEvenThe differentOddEven value of HeaderFooterSettings.
evenFooterThe evenFooter value of HeaderFooterSettings.
evenHeaderThe evenHeader value of HeaderFooterSettings.
firstFooterThe firstFooter value of HeaderFooterSettings.
firstHeaderThe firstHeader value of HeaderFooterSettings.
oddFooterThe oddFooter value of HeaderFooterSettings.
oddHeaderThe oddHeader value of HeaderFooterSettings.
scaleWithDocumentThe scaleWithDocument value of HeaderFooterSettings.

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,
    scaleWithDocument: false,
    alignWithMargins: false,
};

See Also