TX Sheet Control

OpenDocumentSpreadsheetSaveOptions.signal Property

Property

Abort the export before it completes.

Syntax

signal?: AbortSignal;

Example

The application supplies control and, for loading, inputBytes.

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

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

See Also