请问, 使用V10.0 版本的spreadjs ,希望导出时,能显示网格线和标题,需要怎么做? 目前的导出代码是这样的: exportToExcel: function () { GC.Spread.Sheets.LicenseKey = Licenses.key;
var excelIo = new GC.Spread.Excel.IO();
var json = JSON.stringify(spreadView.spread.toJSON({ includeBindingSource: true }));
excelIo.save(json, function (blob) {
var fileName = spreadView.model.template.RptTemplateName + '.xlsx';
saveAs(blob, fileName);
}, function (e) {
console.log(e);
});
|
|