SaveTablesXLSXToFileA
Document conversion, extraction, XLSX, files
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SaveTablesXLSXToFile and string arguments are interpreted using the current SetAnsiMode code page
Extracts tables from a PDF page range into a self-contained Excel OpenXML (.xlsx) workbook file
Output is generated in a temporary file beside the destination and replaces it only after the complete export succeeds; invalid page selections, cancellation, generation failures, and publication failures preserve an existing destination
Syntax
Delphi
Function DLSaveTablesXLSXToFileA(InstanceID: Integer; PageRange: PAnsiChar; Options: Integer; FileName: PAnsiChar): Integer;
DLL
int DLSaveTablesXLSXToFileA(int InstanceID, const char* PageRange, int Options, const char* FileName);
Parameters
| PageRange | A one-based page range, or an empty string for every page |
|---|---|
| Options | Reserved for format-specific flags; pass 0 for default export behavior |
| FileName | The destination .xlsx file path |
Return values
Returns the number of exported worksheet tables, or zero when no tables are found or when validation, extraction, or file writing fails
Remarks
The file is a standard SpreadsheetML ZIP package generated without requiring Excel or external libraries; see SaveTablesXLSXToStream for details on multi-page table continuation, cell typing, and merged cell ranges
LastErrorCode is 114 for invalid arguments and 518 when no tables are found or file writing fails
Cell font styles, hyperlinks, multiline row heights, scientific numeric precision, and optional header filters and print titles follow the stream exporter; see SaveTablesXLSXToStream for flags and details