Spread 8.0 Documentation
OwnerPrintDraw Method
Support Options
ActiveX Reference > ActiveX Methods > OwnerPrintDraw Method

Glossary Item Box

OwnerPrintDraw Method


See Also    DLL    Example

Applies To

fpSpread control

Description

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

Syntax

C++

BOOL CSpreadSheet::OwnerPrintDraw(long hDC, long Left, long Top, long Right, long Bottom, short Page);

Visual Basic

fpSpread.OwnerPrintDraw(ByVal hDC As OLE_HANDLE, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal Page As Integer) As Boolean

Parameters

The following parameters are available:

Parameter Description
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 OwnerPrintDraw method to print individual sheet pages to a owner-defined area on the printed page.

This method 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 method prints one page at a time. Use the OwnerPrintPageCount method to determine how many pages can be printed using the Owner Print feature.

Return Type

True if successful; otherwise, False.

See Also

Printing to an Owner-Defined Area on a Page

Sheet property

OwnerPrintPageCount method

DLL Correspondence

SSOwnerPrintDraw Function function

Copyright © GrapeCity, inc. All rights reserved.