TX Sheet Control

OpenDocumentSpreadsheetLoadOptions.maxExpandedBytes Property

Property

Maximum total expanded ZIP bytes and repeated-text projection budget.

Syntax

maxExpandedBytes?: number;

Example

The application supplies editor and, for loading, inputBytes.

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 });
}

See Also