Spread WPF Documentation
PaperSize Property
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > PrintInfo Class : PaperSize Property
Gets or sets the paper size for printing.
Syntax
'Declaration
 
Public Property PaperSize As PaperSize
'Usage
 
Dim instance As PrintInfo
Dim value As PaperSize
 
instance.PaperSize = value
 
value = instance.PaperSize
public PaperSize PaperSize {get; set;}

Property Value

A PaperSize object that represents the paper size for printing.
Example
This example uses the PaperSize property.
// Add a reference to System.Drawing
GrapeCity.Windows.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Windows.SpreadSheet.Data.PrintInfo();
printset.PaperSize = new GrapeCity.Windows.SpreadSheet.Data.PaperSize(System.Drawing.Printing.PaperKind.A4);
gcSpreadSheet1.Sheets[0].PrintInfo = printset;
gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", 0);
' Add a reference to System.Drawing
Dim printset As New GrapeCity.Windows.SpreadSheet.Data.PrintInfo()
printset.PaperSize = New GrapeCity.Windows.SpreadSheet.Data.PaperSize(System.Drawing.Printing.PaperKind.A4)
GcSpreadSheet1.Sheets(0).PrintInfo = printset
GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", 0)
See Also

Reference

PrintInfo Class
PrintInfo Members