Spread Windows Forms 6.0 Product Documentation
PrintInfo Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : PrintInfo Property


Glossary Item Box

Gets or sets a PrintInfo object that determines printing behavior for the sheet.

Syntax

Visual Basic (Declaration) 
Public Property PrintInfo As PrintInfo
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As PrintInfo
 
instance.PrintInfo = value
 
value = instance.PrintInfo
C# 
public PrintInfo PrintInfo {get; set;}

Property Value

PrintInfo object containing the printing information

Example

This example sets the PrintInfo for the active sheet.
C#Copy Code
FarPoint.Win.Spread.PrintMargin pm = new FarPoint.Win.Spread.PrintMargin(5, 5, 5, 5, 5, 5);
FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo("Header", "", "", pm, FarPoint.Win.Spread.PrintOrientation.Landscape,
FarPoint.Win.Spread.PrintPageOrder.Auto, 
true, true, true, true, true, true, true, FarPoint.Win.Spread.PrintType.CurrentPage, 0, 2, 0, 2, 1, 1, true, true, true, 2,
false, "", 1, true);
fpSpread1.ActiveSheet.ColumnCount = 5;
fpSpread1.ActiveSheet.RowCount = 5;
fpSpread1.ActiveSheet.PrintInfo = pi;
Visual BasicCopy Code
Dim pm As New FarPoint.Win.Spread.PrintMargin(5, 5, 5, 5, 5, 5)
Dim pi As New FarPoint.Win.Spread.PrintInfo("Header", "", "", pm, FarPoint.Win.Spread.PrintOrientation.Landscape, FarPoint.Win.Spread.PrintPageOrder.Auto,
True, True, True, True, True, True, True, FarPoint.Win.Spread.PrintType.CurrentPage, 0, 2, 0, 2, 1, 1, True, True, True, 2,
False, "", 1, True)
FpSpread1.ActiveSheet.ColumnCount = 5
FpSpread1.ActiveSheet.RowCount = 5
FpSpread1.ActiveSheet.PrintInfo = pi

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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