SSOwnerPrintDraw Function
Applies To
fpSpread DLL control
Description
Draws the sheet in a specified rectangle on the printed page.
Syntax
BOOL SSOwnerPrintDraw(HWND hWnd, HDC hDC, long left, long top, long right, long bottom, short page);
BOOL TSpread::SSOwnerPrintDraw(HWND hWnd, HDC hDC, long left, long top, long right, long bottom, short page);
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 |
page | Number of page to print |
Remarks
Use the SSOwnerPrintDraw function to print individual sheet pages to an owner-defined area on the printed page.
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.
This function prints one page at a time. Use the SSOwnerPrintPageCount function to determine how many pages can be printed using the Owner Print feature.
Return Value
TRUE if the function completes successfully; FALSE otherwise.
See Also
Printing to an Owner-Defined Area on a Page
ActiveX Correspondence
OwnerPrintDraw method