SSOwnerPrintPageCount Function
Applies To
fpSpread DLL control
Description
Determines the number of pages when using the Owner Print feature.
Syntax
BOOL SSOwnerPrintPageCount(HWND hWnd, HDC hDC, long left, long top, long right, long bottom, LPSHORT pageCount);
BOOL TSpread::SSOwnerPrintPageCount(HWND hWnd, HDC hDC, long left, long top, long right, long bottom, LPSHORT pageCount);
Parameters
The following parameters are available:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
hDC | Device context handle |
left | Left coordinate of owner-defined rectangle, in twips |
top | Top coordinate of owner-defined rectangle, in twips |
right | Right coordinate of owner-defined rectangle, in twips |
bottom | Bottom coordinate of owner-defined rectangle, in twips |
pageCount | Returns the number of pages. Pages are one-based. |
Remarks
This function is called for the current sheet setting unless you first set the Sheet property to specify the sheet with which you want to work.
Use the SSOwnerPrintDraw function to print individual sheet pages to an owner-defined area on the printed page. The SSOwnerPrintDraw function prints one page at a time.
Return Value
TRUE if the function completes successfully; FALSE otherwise.
See Also
Printing to an Owner-Defined Area on a Page
ActiveX Correspondence
OwnerPrintPageCount method