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

Glossary Item Box

SSOwnerPrintPageCount Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Determines the number of pages when using the Owner Print feature.

Syntax

C

BOOL SSOwnerPrintPageCount(HWND hWnd, HDC hDC, long left, long top, long right, long bottom, LPSHORT pageCount);

C++

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.