GrapeCity.Xaml.SpreadSheet.Data
PaperSize Constructor(Double,Double)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > PaperSize Class > PaperSize Constructor : PaperSize Constructor(Double,Double)
The custom width.
The custom height.
Creates a new paper size setting with a custom paper size.
Syntax
'Declaration
 
Public Function New( _
   ByVal width As Double, _
   ByVal height As Double _
)
'Usage
 
Dim width As Double
Dim height As Double
 
Dim instance As New PaperSize(width, height)
public PaperSize( 
   double width,
   double height
)

Parameters

width
The custom width.
height
The custom height.
Example
This example sets the paper size.
int i, j;
for (i = 0; i <= 50; i++)
{
       for (j = 0; j <= 20; j++)
        gcSpreadSheet1.ActiveSheet.SetValue(i, j, "test");
}

GrapeCity.Xaml.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Xaml.SpreadSheet.Data.PrintInfo();
printset.Orientation = GrapeCity.Xaml.SpreadSheet.Data.PrintPageOrientation.Portrait;
printset.PageOrder = GrapeCity.Xaml.SpreadSheet.Data.PrintPageOrder.Auto;
printset.PageRange = "1-3";
printset.PaperSize = new GrapeCity.Xaml.SpreadSheet.Data.PaperSize(GrapeCity.Xaml.SpreadSheet.Data.PaperKind.Letter);
//printset.PaperSize = new GrapeCity.Xaml.SpreadSheet.Data.PaperSize(600, 300);
//printset.PaperSize = new GrapeCity.Xaml.SpreadSheet.Data.PaperSize();
gcSpreadSheet1.Sheets[0].PrintInfo = printset;
For i = 0 To 50
For j = 0 To 20
GcSpreadSheet1.ActiveSheet.SetValue(i, j, "test")
Next j
Next i

Dim printset As New GrapeCity.Xaml.SpreadSheet.Data.PrintInfo()
printset.Orientation = GrapeCity.Xaml.SpreadSheet.Data.PrintPageOrientation.Portrait
printset.PageOrder = GrapeCity.Xaml.SpreadSheet.Data.PrintPageOrder.Auto
printset.PageRange = "1-3"
'printset.PaperSize = new GrapeCity.Xaml.SpreadSheet.Data.PaperSize(GrapeCity.Xaml.SpreadSheet.Data.PaperKind.Letter)
printset.PaperSize = New GrapeCity.Xaml.SpreadSheet.Data.PaperSize(600, 300)
'printset.PaperSize = new GrapeCity.Xaml.SpreadSheet.Data.PaperSize()
GcSpreadSheet1.Sheets(0).PrintInfo = printset
See Also

Reference

PaperSize Class
PaperSize Members
Overload List