一个模板中多个sheet,多个sheet怎么绑定数据源,目前看起来只是当前显示的sheet绑定时成功的。关键是table的绑定
if (spread && spread.sheets) {
var datasource = new GC.Spread.Sheets.Bindings.CellBindingSource(data);
var len = spread.getSheetCount()
for (var i = 0; i < len; i++) {
var sheet = spread.sheets;
if(sheet)
{
sheet.setDataSource(datasource);
}
}
}
|
|