TX Sheet Control

LoadOptions.openDocumentSpreadsheet Property

Property

Format-specific ODS load settings. See OpenDocumentSpreadsheetLoadOptions.

Syntax

openDocumentSpreadsheet?: OpenDocumentSpreadsheetLoadOptions;

Example

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

async function loadInvoice(editor: Spreadsheet, inputBytes: Uint8Array) {
    const options: OpenDocumentSpreadsheetLoadOptions = { maxEditableCells: 100000 };
    return editor.load(inputBytes, StreamType.OpenDocumentSpreadsheet, { openDocumentSpreadsheet: options });
}