Gets or sets the paper size for printing.
Syntax
Visual Basic (Declaration) | |
---|
Public Property PaperSize As PaperSize |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As PrintInfo
Dim value As PaperSize
instance.PaperSize = value
value = instance.PaperSize |
Property Value
PaperSize object specifying the size of a piece of paper
Remarks
Example
This example shows how to define the print job settings.
C# | Copy Code |
---|
// Define the printer settings
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
printset.JobName = "New Print Job";
printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto;
printset.PaperSize = new System.Drawing.Printing.PaperSize("Letter", 600, 300);
printset.PaperSource = new System.Drawing.Printing.PrinterSettings.PaperSources[0].SourceName;
printset.Printer = "HP6L";
// Assign the printer settings to the sheet and print it
fpSpread1.Sheets[0].PrintInfo = printset;
fpSpread1.PrintSheet(0); |
Visual Basic | Copy Code |
---|
' Define the printer settings
Dim printset As New FarPoint.Win.Spread.PrintInfo()
printset.JobName = "New Print Job"
printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto
printset.PaperSize = New System.Drawing.Printing.PaperSize("Letter", 600, 300)
printset.PaperSource = New System.Drawing.Printing.PrinterSettings.PaperSources(0).SourceName
printset.Printer = "HP6L"
' Assign the printer settings to the sheet and print it
FpSpread1.Sheets(0).PrintInfo = printset
FpSpread1.PrintSheet(0) |
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