var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.Picture(qzpath[j], cxpath+qzarray[k].value, qzPosition[i].x, qzPosition[i].y,qzPosition[i].w,qzPosition[i].h);
sheet.floatingObjects.add(customFloatingObject);
浮动元素是这样添加得,
function ExportFile() {
var fileName = document.getElementById("exportFileName").value;
if (fileName.substr(-5, 5) !== '.xlsx') {
fileName += '.xlsx';
}
var json = JSON.stringify(spread.toJSON());
excelIO.save(json, function (blob) {
saveAs(blob, fileName);
}, function (e) {
console.log(e);
});
}
这个是导出方法
|