Posted 12 March 2019, 8:02 pm EST
This is the code I’m using to export spreadJS to excel file
var workbook = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var fileName = "download.xlsx";
var json = JSON.stringify(workbook.toJSON());
var excelIO = new GC.Spread.Excel.IO();
excelIO.save(json, function (blob) {
saveAs(blob, fileName);
}, function (e) {
console.log(e);
});
After the file is created, when I try to open in in MS Excel I got the following error:
We found a problem with some content in ‘download.xlsx’. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.