Posted 22 October 2018, 3:05 am EST
Hi, In Wijmo Flexsheet I can import and export excel files using base64.
flexSheet.load(base64string);
var workbook = flexSheet.save();
var base64String = workbook.save();
Is this possible using SpreadJS as well?
It seems like in the documentation the only option is using a File object imported using input
var workbook = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var excelIO = new GC.Spread.Excel.IO();
function ImportFile() {
var excelFile = document.getElementById("fileDemo").files[0];
excelIO.open(excelFile, function (json) {
var workbookObj = json;
workbook.fromJSON(workbookObj);
}, function (e) {
console.log(e);
});
}