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

Glossary Item Box

SSOwnerPrintDraw Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Draws the sheet in a specified rectangle on the printed page.

Syntax

C

BOOL SSOwnerPrintDraw(HWND hWnd, HDC hDC, long left, long top, long right, long bottom, short page);

C++

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

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