单元格格式是自定义
function getCheckBoxCellType(text) {
var c = new GC.Spread.Sheets.CellTypes.CheckBox();
c.textAlign(GC.Spread.Sheets.CellTypes.CheckBoxTextAlign.right);
c.caption(text);
return c;
}
sheet.getCell(7, 2).cellType(getCheckBoxCellType("主要"));
导出前:
导出后:
|
|