TX Sheet Control

OpenDocumentSpreadsheetSaveOptions.documentProperties Property

Property

Export-only metadata overrides.

Syntax

documentProperties?: DocumentProperties;

Example

The application supplies editor and, for loading, inputBytes.

import { StreamType, type Spreadsheet, type OpenDocumentSpreadsheetSaveOptions } from '@txtextcontrol/tx-sheet-control';

async function saveInvoice(editor: Spreadsheet, inputBytes: Uint8Array) {
    const options: OpenDocumentSpreadsheetSaveOptions = { preserveOriginal: true };
    return editor.save(StreamType.OpenDocumentSpreadsheet, { openDocumentSpreadsheet: options });
}

See Also