Spread 8.0 Documentation
SSGetNextPageBreakRow Function
Support Options
DLL Reference > DLL Functions > SSGetNextPageBreakRow Function

Glossary Item Box

SSGetNextPageBreakRow Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Returns the row number of the next row at which a page break occurs.

Syntax

C

long SSGetNextPageBreakRow(HWND hWnd, long lPrevRow);

C++

long TSpread::GetNextPageBreakRow(long lPrevRow);

Parameters

The following parameters are available:

Parameter Description
hWnd Window handle of the fpSpread control
lPrevRow Row number of previous row 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 rows at which page breaks occur using the SSSetRowPageBreak function. Use this function to return the row numbers of rows at which page breaks occur in the printed sheet. The row number returned is the first row of the next page.

To return all the rows at which page breaks occur, loop through the sheet. When the function has reached the last row at which a page break occurs, the next time you request the row number the function returns –1.

Call the SSGetNextPageBreakCol function to return the column numbers of columns at which page breaks occur.

Return Value

Row number of the next row at which a page break occurs. When the function has reached the last row at which a page break occurs, the next time you request the row number the function returns –1.

See Also

Specifying Print Page Breaks

SSGetNextPageBreakCol, SSSetRowPageBreak, SSSetSheet functions

ActiveX Correspondence

PrintNextPageBreakRow property

Copyright © GrapeCity, inc. All rights reserved.