DataGate Print File Designer® - Build 8.0.355 and above

PrintFile.PaperSize Property

The PaperSize property indicates the type (size) of paper.

printfile.PaperSize [=System.Drawing.Printing.PaperKind]

Property Value

System.Drawing.Printing.PaperKind.  Gets or sets the enumeration value indicating the size of the paper.  The default is Letter.

Note    Not all of the possible values for this enumeration may be valid for your printer.  Each printer has a limited set of acceptable values.  It is up to the programmer to select the value adequate for the actual printer device used to render the output of the print file.

Remarks

In design-time, when this property is changed, PaperLength and PaperWidth are updated, depending on Orientation, to reflect the size of the paper.  For example, if PaperSize is letter and Orientation is portrait, PaperLength would be 11 and PaperWidth would be 8.5.  However, if Orientation is landscape, PaperLength would be 8.5 and PaperWidth would be 11.

To set the PaperSize property, click on the right side of the property and enter one of the options in the drop-down box.

See Also

PrintFile Class | PrintFile Class Members | System.Drawing.Printing.PaperKind EnumerationPaperWidth Property | PaperLength Property | Orientation Property