OpenDocumentSpreadsheetLoadOptions Interface
Format settings used by openDocumentSpreadsheet in LoadOptions. This interface is a type-only declaration.
Properties
| Property | Description |
|---|---|
| autoExpand | Whether the editable worksheet may grow within its configured limits. |
| inflateRaw | Optional platform raw-DEFLATE callback. Return the expanded bytes; archive limits and expected-size checks still apply. |
| maxColumns | Maximum editable column capacity; range 1–16384. |
| maxEditableCells | Maximum projected stored cells; defaults to 1000000. |
| maxEntries | Maximum ZIP entry count, checked before expanding parts. |
| maxExpandedBytes | Maximum total expanded ZIP bytes and repeated-text projection budget. |
| maxFileBytes | Maximum accepted compressed file bytes. |
| maxPartBytes | Maximum expanded bytes in one ZIP member. |
| maxRows | Maximum editable row capacity; range 1–1048576. |
| minColumns | Minimum initial column capacity, bounded by maxColumns. |
| minRows | Minimum initial row capacity, bounded by maxRows. |
| signal | Abort signal checked before parsing and committing the document. |
Example
import { StreamType, type ServerSheetControl, type OpenDocumentSpreadsheetLoadOptions } from '@txtextcontrol/tx-sheet-control-server';
async function loadInvoice(editor: ServerSheetControl, inputBytes: Uint8Array) {
const options: OpenDocumentSpreadsheetLoadOptions = { maxEditableCells: 100000 };
return editor.load(inputBytes, StreamType.OpenDocumentSpreadsheet, { openDocumentSpreadsheet: options });
}