SpreadJS Documentation
getColumnPageBreak Method
The column index.
Gets whether a forced page break is inserted before the specified column on this sheet when printing.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: boolean
value = instance.getColumnPageBreak(column);
function getColumnPageBreak( 
   column : number
) : boolean;

Parameters

column
The column index.

Return Value

true if a forced page break is inserted before the specified column; otherwise, false.
Example
This example gets row and column page breaks.
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);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.