SSGetNextPageBreakCol Function
Applies To
fpSpread DLL control
Description
Returns the column number of the next column in the sheet at which a page break occurs.
Syntax
long SSGetNextPageBreakCol(HWND hWnd, long lPrevCol);
long TSpread::GetNextPageBreakCol(long lPrevCol);
Parameters
The following parameters are available:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
lPrevCol | Column number of previous column at which a page break occurs |
Remarks
This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.
Page breaks occur within the sheet depending on the print settings you have chosen. You can also specify columns at which page breaks occur by calling the SSSetColPageBreak function. Use this function to return the column numbers of columns at which page breaks occur in the printed sheet. The column number returned is the first column of the next page.
To return all the columns at which page breaks occur, loop through the sheet. When the function has reached the last column at which a page break occurs, the next time you request the column number the function returns –1.
Call the SSGetNextPageBreakRow function to return the row numbers of rows at which page breaks occur.
Return Value
Column number of the next column at which a page break occurs. When the function has reached the last column at which a page break occurs, the next time you request the column number the function returns –1.
See Also
SSGetNextPageBreakRow, SSSetColPageBreak, SSSetSheet functions
ActiveX Correspondence
PrintNextPageBreakCol property