$.getJSON("../modelManage/yyma_TutorialSample/certificate/" + wjmc + ".ssjson", function (data) {
var spreadTemp = new GC.Spread.Sheets.Workbook();
spreadTemp.fromJSON(data);
var copySheet = spreadTemp.sheets[0]; // 获取到的历史数据原始记录sheet
var rowCount = copySheet.getRowCount();
// spread.suspendPaint();
var fromRange = [copySheet.getRange(0, -1, 90, -1)]; // 复制从第页开始
var jlSheet = spread.sheets[0];
var toRanges = [jlSheet.getRange(0, -1, 90, -1)];
spread.commandManager().execute({cmd: "clipboardPaste", sheetName: jlSheet.name(), fromSheet: copySheet, fromRanges: fromRange, pastedRanges: toRanges, isCutting: false, clipboardText: "", pasteOption: GC.Spread.Sheets.ClipboardPasteOptions.all});
// spread.resumePaint();
});
我看了copySheet是有内容的,粘贴也执行了,就是没有任何内容。是我的内容不在sheet里吗?
|
|