本帖最后由 1225932566 于 2017-9-27 15:52 编辑
var spread = GC.Spread.Sheets.findControl($('#ss')[0]);
for (var i = 0; i < spread.getSheetCount(); i++) {
var sheet = spread.getSheet(i);
var spreadNS = GC.Spread.Sheets;
spread.suspendPaint();
sheet.getRange(-1, 1, 0, 24).width(120);
var table = sheet.tables.addFromDataSource("Table"+i, 0, 1, dataSource, spreadNS.Tables.TableThemes.light9);
table.showFooter(false);
table.showHeader(true);
table.highlightFirstColumn(true);
table.highlightLastColumn(true);
spread.resumePaint();
}
json.txt
(1.35 KB, 下载次数: 66)
|
|