Skip to content

Kitto.Excel

TKExcelExportEngine class

Exports a KittoX view-table store (or a plain dataset) to an Excel file via ADOX/ADO, optionally filling a named range in a template workbook.

pascal
procedure CreateFileByTable(const AFileName: string;

Creates a new Excel file from a view-table store, building the sheet structure from its fields.

pascal
procedure CreateFileByDataSet(const AFileName: string;

Creates a new Excel file from a plain dataset, building the sheet structure from its fields.

pascal
procedure FillAdoTable(const AExcelFileName, AExcelRangeName: string;

Fills the named range of an existing Excel file with the rows of a view-table store.

pascal
procedure FillAdoTableByDataSet(const AExcelFileName, AExcelRangeName: string;

Fills the named range of an existing Excel file with the rows of a dataset.

TKExcelImportEngine class

Imports rows from an Excel file into a KittoX view table, with optional field-name mapping and accept/set-value/before-post callbacks.

pascal
function GetFieldMappingName(const ASourceField: TField;

Resolves the destination field name for a source Excel field using the given mappings.

pascal
procedure ImportFileIntoViewTable( const AFileName: string;

Imports all accepted records from the Excel file into the given view table.

pascal
property OnDatabaseError : TImportDatabaseErrorEvent read FOnDatabaseError write FOnDatabaseError;

Fired when a database error occurs during import; the handler may choose to ignore it.

Released under Apache License, Version 2.0.