Spread Windows Forms 7.0 Product Documentation
OwnerPrintDraw(Graphics,Rectangle,Int32,Int32,OwnerPrintInfo) Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class > OwnerPrintDraw Method : OwnerPrintDraw(Graphics,Rectangle,Int32,Int32,OwnerPrintInfo) Method


g
Graphics device that handles printing
rect
Location and size of a rectangular region
sheet
Sheet from which to print
page
Specific page of the sheet to print
info

Glossary Item Box

Prints the specified page of the specified sheet to a specified graphics interface with the specified size.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub OwnerPrintDraw( _
   ByVal g As Graphics, _
   ByVal rect As Rectangle, _
   ByVal sheet As Integer, _
   ByVal page As Integer, _
   ByVal info As OwnerPrintInfo _
) 
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim g As Graphics
Dim rect As Rectangle
Dim sheet As Integer
Dim page As Integer
Dim info As OwnerPrintInfo
 
instance.OwnerPrintDraw(g, rect, sheet, page, info)
C# 
public void OwnerPrintDraw( 
   Graphics g,
   Rectangle rect,
   int sheet,
   int page,
   OwnerPrintInfo info
)

Parameters

g
Graphics device that handles printing
rect
Location and size of a rectangular region
sheet
Sheet from which to print
page
Specific page of the sheet to print
info

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException Specified sheet index is out of range; must be between zero and the total number of sheets
System.ArgumentOutOfRangeException Specified page index is out of range; must be greater than one

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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