Spread Silverlight Documentation
PaperKind Enumeration
Example Example 


GrapeCity.Windows.SpreadSheet.Data Namespace : PaperKind Enumeration
Specifies the paper kind for the printed page.
Syntax
'Declaration
 
Public Enum PaperKind 
   Inherits System.Enum
'Usage
 
Dim instance As PaperKind
public enum PaperKind : System.Enum 
Members
MemberDescription
A2 Specifies the paper size is 420mm * 594mm.
A3 Specifies the paper size is 297mm * 420mm.
A3Extra Specifies the paper size is 322mm * 445mm.
A3ExtraTransverse Specifies the paper size is 322mm * 445mm.
A3Rotated Specifies the paper size is 420mm * 297mm.
A3Transverse Specifies the paper size is 297mm * 420mm.
A4 Specifies the paper size is 210mm * 297mm.
A4Extra Specifies the paper size is 235mm * 322mm.
A4Plus Specifies the paper size is 210mm * 330mm.
A4Rotated Specifies the paper size is 297mm * 210m.
A4Small Specifies the paper size is 210mm * 297 mm.
A4Transverse Specifies the paper size is 210mm * 297mm.
A5 Specifies the paper size is 148mm * 210mm.
A5Extra Specifies the paper size is 174mm * 235mm.
A5Rotated Specifies the paper size is 210mm * 148mm.
A5Transverse Specifies the paper size is 148mm * 210mm.
A6 Specifies the paper size is 105mm * 148mm.
A6Rotated Specifies the paper size is 148mm * 105mm.
APlus Specifies the paper size is 227 mm * 356 mm.
B4 Specifies the paper size is 250mm * 353mm.
B4Envelope Specifies the paper size is 250 mm * 353 mm.
B4JisRotated Specifies the paper size is 364 mm * 257 mm.
B5 Specifies the paper size is 176 mm * 250 mm.
B5Envelope Specifies the paper size is 176 mm * 250 mm.
B5Extra Specifies the paper size is 201 mm * 276 mm.
B5JisRotated Specifies the paper size is 257 mm * 182 mm.
B5Transverse Specifies the paper size is 182 mm * 257 mm.
B6Envelope Specifies the paper size is 176 mm by 125 mm.
B6Jis Specifies the paper size is 128 mm by 182 mm.
B6JisRotated Specifies the paper size is 182 mm by 128 mm.
BPlus Specifies the paper size is 305 mm by 487 mm.
C3Envelope Specifies the paper size is 322mm × 445mm.
C4Envelope Specifies the paper size is 229 mm by 324 mm.
C5Envelope Specifies the paper size is 162 mm by 229 mm.
C65Envelope Specifies the paper size is 114 mm by 229 mm.
C6Envelope Specifies the paper size is 114 mm by 162 mm.
CSheet Specifies the paper size is 17 in. by 22 in.
Custom Specifies the paper size is defined by the user.
DLEnvelope Specifies the paper size is 110 mm by 220 mm.
DSheet Specifies the paper size is22 in. by 34 in.
ESheet Specifies the paper size is 34 in. by 44 in.
Executive Specifies the paper size is 7.25 in. by 10.5 in.
Folio Specifies the paper size is 8.5 in. by 13 in.
GermanLegalFanfold Specifies the paper size is 8.5 in. by 13 in.
GermanStandardFanfold Specifies the paper size is 8.5 in. by 12 in.
InviteEnvelope Specifies the paper size is 220 mm by 220 mm.
IsoB4 Specifies the paper size is 250 mm by 353 mm.
ItalyEnvelope Specifies the paper size is 110 mm by 230 mm.
JapaneseDoublePostcard Specifies the paper size is 200 mm by 148 mm.
JapaneseDoublePostcardRotated Specifies the paper size is 148 mm by 200 mm.
JapaneseEnvelopeChouNumber3 Specifies the paper size is Japanese Chou #3 envelope.
JapaneseEnvelopeChouNumber3Rotated Specifies the paper size is Japanese rotated Chou #3 envelope.
JapaneseEnvelopeChouNumber4 Specifies the paper size is Japanese Chou #4 envelope.
JapaneseEnvelopeChouNumber4Rotated Specifies the paper size is Japanese rotated Chou #4 envelope.
JapaneseEnvelopeKakuNumber2 Specifies the paper size is Japanese Kaku #2 envelope.
JapaneseEnvelopeKakuNumber2Rotated Specifies the paper size is Japanese rotated Kaku #2 envelope.
JapaneseEnvelopeKakuNumber3 Specifies the paper size is Japanese Kaku #3 envelope.
JapaneseEnvelopeKakuNumber3Rotated Specifies the paper size is Japanese rotated Kaku #3 envelope.
JapaneseEnvelopeYouNumber4 Specifies the paper size is Japanese You #4 envelope.
JapaneseEnvelopeYouNumber4Rotated Specifies the paper size is Japanese You #4 rotated envelope.
JapanesePostcard Specifies the paper size is 100 mm by 148 mm.
JapanesePostcardRotated Specifies the paper size is 148 mm by 100 mm.
Ledger Specifies the paper size is 17 in. by 11 in.
Legal Specifies the paper size is 8.5 in. by 14 in.
LegalExtra Specifies the paper size is legal extra paper (9.275 in. by 15 in.). This value is specific to the PostScript driver and is used only by Linotronic printers in order to conserve paper.
Letter Specifies the paper size is 8.5 in. by 11 in.
LetterExtra Specifies the paper size is letter extra paper (9.275 in. by 12 in.). This value is specific to the PostScript driver and is used only by Linotronic printers in order to conserve paper.
LetterExtraTransverse Specifies the paper size 9.275 in. by 12 in.
LetterPlus Specifies the paper size is 8.5 in. by 12.69 in.
LetterRotated Specifies the paper size is 11 in. by 8.5 in.
LetterSmall Specifies the paper size is 8.5 in. by 11 in.
LetterTransverse Specifies the paper size is 8.275 in. by 11 in.
MonarchEnvelope Specifies the paper size is 3.875 in. by 7.5 in.
Note Specifies the paper size is 8.5 in. by 11 in.
Number10Envelope Specifies the paper size is 4.125 in. by 9.5 in.
Number11Envelope Specifies the paper size is 4.5 in. by 10.375 in.
Number12Envelope Specifies the paper size is 4.75 in. by 11 in.
Number14Envelope Specifies the paper size is 5 in. by 11.5 in.
Number9Envelope Specifies the paper size is 3.875 in. by 8.875 in.
PersonalEnvelope Specifies the paper size is 3.625 in. by 6.5 in.
Prc16K Specifies the paper size is 146 mm by 215 mm.
Prc16KRotated Specifies the paper size is 146 mm by 215 mm.
Prc32K Specifies the paper size is 97 mm by 151 mm.
Prc32KBig Specifies the paper size is 97 mm by 151 mm.
Prc32KBigRotated Specifies the paper size is 97 mm by 151 mm.
Prc32KRotated Specifies the paper size is 97 mm by 151 mm.
PrcEnvelopeNumber1 Specifies the paper size is 102 mm by 165 mm.
PrcEnvelopeNumber10 Specifies the paper size is 324 mm by 458 mm.
PrcEnvelopeNumber10Rotated Specifies the paper size is 458 mm by 324 mm.
PrcEnvelopeNumber1Rotated Specifies the paper size is 165 mm by 102 mm.
PrcEnvelopeNumber2 Specifies the paper size is 102 mm by 176 mm.
PrcEnvelopeNumber2Rotated Specifies the paper size is 176 mm by 102 mm.
PrcEnvelopeNumber3 Specifies the paper size is 125 mm by 176 mm.
PrcEnvelopeNumber3Rotated Specifies the paper size is 176 mm by 125 mm.
PrcEnvelopeNumber4 Specifies the paper size is 110 mm by 208 mm.
PrcEnvelopeNumber4Rotated Specifies the paper size is 208 mm by 110 mm.
PrcEnvelopeNumber5 Specifies the paper size is 110 mm by 220 mm.
PrcEnvelopeNumber5Rotated Specifies the paper size is 220 mm by 110 mm.
PrcEnvelopeNumber6 Specifies the paper size is 120 mm by 230 mm.
PrcEnvelopeNumber6Rotated Specifies the paper size is 230 mm by 120 mm.
PrcEnvelopeNumber7 Specifies the paper size is 160 mm by 230 mm.
PrcEnvelopeNumber7Rotated Specifies the paper size is 230 mm by 160 mm.
PrcEnvelopeNumber8 Specifies the paper size is 120 mm by 309 mm.
PrcEnvelopeNumber8Rotated Specifies the paper size is 309 mm by 120 mm.
PrcEnvelopeNumber9 Specifies the paper size is 229 mm by 324 mm.
PrcEnvelopeNumber9Rotated Specifies the paper size is 324 mm by 229 mm.
Quarto Specifies the paper size is 215 mm by 275 mm
Standard10x11 Specifies the paper size is 10 in. by 11 in.
Standard10x14 Specifies the paper size is 10 in. by 14 in
Standard11x17 Specifies the paper size is 11 in. by 17 in.
Standard12x11 Specifies the paper size is 12 in. by 11 in.
Standard15x11 Specifies the paper size is 15 in. by 11 in.
Standard9x11 Specifies the paper size is 9 in. by 11 in.
Statement Specifies the paper size is 5.5 in. by 8.5 in.
Tabloid Specifies the paper size is 11 in. by 17 in.
TabloidExtra Specifies the paper size is 11.69 in. by 18 in.
USStandardFanfold Specifies the paper size is 14.875 in. by 11 in.
Example
This example uses the PaperKind enumeration.
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Filter = "PDF File (.pdf)|*.pdf";
bool? useClick = saveFileDialog.ShowDialog();
if (useClick == true)
{
    var stream = saveFileDialog.OpenFile();

int i, j;
for (i = 0; i <= 50; i++)
{
       for (j = 0; j <= 20; j++)
        gcSpreadSheet1.ActiveSheet.SetValue(i, j, "test");
}

GrapeCity.Windows.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Windows.SpreadSheet.Data.PrintInfo();
printset.Orientation = GrapeCity.Windows.SpreadSheet.Data.PrintPageOrientation.Portrait;
printset.PageOrder = GrapeCity.Windows.SpreadSheet.Data.PrintPageOrder.Auto;
printset.PageRange = "1-3";
printset.PaperSize = new GrapeCity.Windows.SpreadSheet.Data.PaperSize(GrapeCity.Windows.SpreadSheet.Data.PaperKind.Letter);
//printset.PaperSize = new GrapeCity.Windows.SpreadSheet.Data.PaperSize(600, 300);
//printset.PaperSize = new GrapeCity.Windows.SpreadSheet.Data.PaperSize();
gcSpreadSheet1.Sheets[0].PrintInfo = printset;

gcSpreadSheet1.SavePDF(stream, 0);
 stream.Dispose();
}
Dim saveFileDialog = New SaveFileDialog()
saveFileDialog.Filter = "PDF File(.pdf)|*.pdf"
Dim useClick As Boolean = saveFileDialog.ShowDialog()
If (useClick = True) Then
Dim stream = saveFileDialog.OpenFile()

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.Windows.SpreadSheet.Data.PrintInfo()
printset.Orientation = GrapeCity.Windows.SpreadSheet.Data.PrintPageOrientation.Portrait
printset.PageOrder = GrapeCity.Windows.SpreadSheet.Data.PrintPageOrder.Auto
printset.PageRange = "1-3"
'printset.PaperSize = new GrapeCity.Windows.SpreadSheet.Data.PaperSize(GrapeCity.Windows.SpreadSheet.Data.PaperKind.Letter)
printset.PaperSize = New GrapeCity.Windows.SpreadSheet.Data.PaperSize(600, 300)
'printset.PaperSize = new GrapeCity.Windows.SpreadSheet.Data.PaperSize()
GcSpreadSheet1.Sheets(0).PrintInfo = printset
GcSpreadSheet1.SavePDF(stream, 0)
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Windows.SpreadSheet.Data.PaperKind

See Also

Reference

GrapeCity.Windows.SpreadSheet.Data Namespace