[]
To export FlexGrid controls to the XLSX format, you should include three extra modules in your application:
To export a FlexGrid to XLSX, call the FlexGridXlsxConverter.save method to obtain a 'book' object. You may modify the book object before saving it, by adding or renaming sheets for example. Once the 'book' is ready, call its save method to create the XLSX file.
import * as wjGrid from '@mescius/wijmo.grid';
import * as wjGridXlsx from '@mescius/wijmo.grid.xlsx';
// create book with current view
var book = wjGridXlsx.FlexGridXlsxConverter.save(theGrid, { includeColumnHeaders: true,
includeRowHeaders: true });
//name the sheet
book.sheets[0].name = 'FlexGrid Data';
// save the book
book.save('FlexGrid-Export.xlsx');