TX Sheet Control

SaveOptions Interface

Interface

Reusable save settings shared by every host. Metadata is export-only and overrides loaded document metadata.

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

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

Members

Properties

PropertyDescription
bomInclude a UTF-8 byte-order mark for applications that require it. Default false.
decimalSeparatorDecimal separator for numeric values; defaults to period.
delimiterOne non-quote, non-newline delimiter; defaults to comma.
documentPropertiesThe documentProperties value of SaveOptions.
escapeFormulasPrefix formula-like text with an apostrophe for spreadsheet consumers. Default true; false preserves exact text.
formatRecords use header names as keys; rows retain all selected rows as arrays. Default records.
hasHeaderRowFor JSON records and XML, use the first selected row as field names. Default true; false generates Column1, etc.
internalWorkbookFormatThe internalWorkbookFormat value of SaveOptions.
lineEndingRecord ending; defaults to CRLF. Embedded line breaks remain inside quoted fields.
maxCellsMaximum selected rectangular cell count, including blanks. Defaults to 1,000,000.
maxFileBytesMaximum encoded output bytes; defaults to 32 MiB.
omitDashboardsNon-native formats omit interactive dashboards. Set true to explicitly export worksheet content only.
pdfThe pdf value of SaveOptions.
prettyIndent exported JSON by two spaces. Default false.
rangeInclusive A1 rectangle. Defaults to A1 through the last populated cell; formatting alone does not extend it.
sheetNameWorksheet name; defaults to the active worksheet.
signalThe signal value of SaveOptions.
spreadsheetMLThe spreadsheetML value of SaveOptions.

Examples

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

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

const saveSettings: SaveOptions = { pdf: { timeZone: 'UTC', title: 'Invoice', locale: 'de-DE' } };

See Also