var instance = new GC.Spread.Sheets.Worksheet(name); var returnValue; // Type: any returnValue = instance.setColumnPageBreak(column, value);
パラメータ
- column
- 列インデックス。
- value
- 印刷時にこのシートの指定した列の前で強制的に改ページする場合、
true
に設定します。
true
に設定します。
var instance = new GC.Spread.Sheets.Worksheet(name); var returnValue; // Type: any returnValue = instance.setColumnPageBreak(column, value);
true
に設定します。activeSheet.suspendPaint(); //set value for (var r = 0, rc = activeSheet.getRowCount(); r < rc; r++) { for (var c = 0, cc = activeSheet.getColumnCount(); c < cc; c++) { activeSheet.setValue(r, c, r + c); } } activeSheet.resumePaint(); activeSheet.setRowPageBreak(3, true); activeSheet.setColumnPageBreak(5, true); alert(activeSheet.getRowPageBreak(3)); alert(activeSheet.getColumnPageBreak(5)); //Remove following comment to use the print method //spread.print(0);
activeSheet.suspendPaint(); //set value for (var r = 0, rc = activeSheet.getRowCount(); r < rc; r++) { for (var c = 0, cc = activeSheet.getColumnCount(); c < cc; c++) { activeSheet.setValue(r, c, r + c); } } activeSheet.resumePaint(); activeSheet.setRowPageBreak(3, true); activeSheet.setColumnPageBreak(5, true); alert(activeSheet.getRowPageBreak(3)); alert(activeSheet.getColumnPageBreak(5)); //Remove following comment to use the print method //spread.print(0);