Skip to main content

xlsx()

Description

Exports data from a spreadsheet into an Excel (.xlsx) file

Usage

xlsx(name:string): void;

Parameters

  • name - (optional) the name of an exported .xlsx file

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
spreadsheet.parse(data);

// exports data from a spreadsheet into an Excel file
spreadsheet.export.xlsx();

// exports data from a spreadsheet into an Excel file with a custom name
spreadsheet.export.xlsx("MyData");
note

Please note that the component supports export to Excel files with the .xlsx extension only.

info

DHTMLX Spreadsheet uses the WebAssembly-based library Json2Excel for import of data from Excel. Check the details.

Related articles: Data loading and export

Related sample: Spreadsheet. Export Xlsx