Spread WPF Documentation
PaperSize Property
Example 


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)
Requirements

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

See Also

Reference

PrintInfo Class
PrintInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.