how can i export the spreadsheet as xlsx file?
Leedorado opened this issue · 5 comments
Leedorado commented
how can i export the spreadsheet as xlsx file?
myliang commented
This requires the support of the background program, what good advice do you have?
ajbouh commented
I think you can create the file in memory and then use a data uri to give the user something they can click. The browser should be able to take care of the rest.
qinrr commented
When can excel be exported
SheetJSDev commented
https://docs.sheetjs.com/docs/demos/grid#x-spreadsheet discusses in more detail
Hosted script https://cdn.sheetjs.com/xspreadsheet/xlsxspread.min.js
Script exposes a function xtos
. Usage:
// var grid = x_spreadsheet(...);
XLSX.writeFile(xtos(grid.getData()), "SheetJS.xlsx");