GcSpread.Sheets Namespace > Sheet type : setRowPageBreak Method |
true
to force a page break before the specified row on this sheet when printing.
var instance = new GcSpread.Sheets.Sheet(name); var returnValue; // Type: any returnValue = instance.setRowPageBreak(row, value);
true
to force a page break before the specified row on this sheet when printing.activeSheet.isPaintSuspended(true); //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.isPaintSuspended(false); 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);