经调研,解决方案如下使用(0,0,rowCount,colCount)而不是(-1,-1,-1,-1)作为range
- var range = new GC.Spread.Sheets.Range(
- 0,
- 0,
- sheet.getRowCount(),
- sheet.getColumnCount()
- );
- sheet.autoMerge(
- range,
- GC.Spread.Sheets.AutoMerge.AutoMergeDirection.rowColumn,
- GC.Spread.Sheets.AutoMerge.AutoMergeMode.free,
- GC.Spread.Sheets.SheetArea.colHeader
- );
复制代码
|