PtrDevice:PaperSize Access/Assign
<< Click to Display Table of Contents >> PtrDevice:PaperSize Access/Assign |
![]() ![]() ![]() |
Type | ShortInt |
Purpose
The access returns the dmPAPERSIZE member of the DEVMODE structure. dmPAPERSIZE is defined by manifest constants which represent predetermined page sizes. WARNING: This access can return 0. In most cases you should use PtrDevice:PaperLengthInches or PtrDevice:PaperWidthInches.
The assign sets the dmPAPERSIZE member of the DEVMODE structure. WARNING: This assign is not supported by all printer drivers.
Supported values are:
DMPAPER_LETTER Letter, 8 1/2 x 11 in.
DMPAPER_LETTERSMALL Letter Small, 8 1/2 x 11 in.
DMPAPER_TABLOID Tabloid, 11 x 17 in.
DMPAPER_LEDGER Ledger, 17 x 11 in.
DMPAPER_LEGAL Legal, 8 1/2 x 14 in.
DMPAPER_STATEMENT Statement, 5 1/2 x 8 1/2 in.
DMPAPER_EXECUTIVE Executive, 7 1/2 x 10 1/2 in.
DMPAPER_A3 A3, 297 x 420 mm
DMPAPER_A4 A4, 210 x 297 mm
DMPAPER_A4SMALL A4 Small, 210 x 297 mm
DMPAPER_A5 A5, 148 x 210 mm
DMPAPER_B4 B4, 250 x 354 mm
DMPAPER_B5 B5, 182 x 257 mm
DMPAPER_FOLIO Folio, 8 1/2 x 13 in.
DMPAPER_QUARTO Quarto, 215 x 275 mm
DMPAPER_10X14 10 x 14 in.
DMPAPER_11X17 11 x 17 in.
DMPAPER_NOTE Note, 8 1/2 x 11 in.
DMPAPER_ENV_9 Envelope #9, 3 7/8 x 8 7/8 in.
DMPAPER_ENV_10 Envelope #10, 4 1/8 x 9 1/2 in.
DMPAPER_ENV_11 Envelope #11, 4 1/2 x 10 3/8 in.
DMPAPER_ENV_12 Envelope #12, 4 1/2 x 11 in.
DMPAPER_ENV_14 Envelope #14, 5 x 11 1/2 in.
DMPAPER_CSHEET C size sheet
DMPAPER_DSHEET D size sheet
DMPAPER_ESHEET E size sheet
DMPAPER_ENV_DL Envelope DL, 110 x 220 mm
DMPAPER_ENV_C3 Envelope C3, 324 x 458 mm
DMPAPER_ENV_C4 Envelope C4, 229 x 324 mm
DMPAPER_ENV_C5 Envelope C5, 162 x 229 mm
DMPAPER_ENV_C6 Envelope C6, 114 x 162 mm
DMPAPER_ENV_C65 Envelope C65, 114 x 229 mm
DMPAPER_ENV_B4 Envelope B4, 250 x 353 mm
DMPAPER_ENV_B5 Envelope B5, 176 x 250 mm
DMPAPER_ENV_B6 Envelope B6, 176 x 125 mm
DMPAPER_ENV_ITALY Envelope, 110 x 230 mm
DMPAPER_ENV_MONARCH Envelope Monarch, 3 7/8 x 7 1/2 in.
DMPAPER_ENV_PERSONAL Envelope, 3 5/8 x 6 1/2 in.
DMPAPER_FANFOLD_US U.S. Standard Fanfold, 14 7/8 x 11 in.
DMPAPER_FANFOLD_STD_GERMAN German Standard Fanfold, 8 1/2 x 12 in.
DMPAPER_FANFOLD_LGL_GERMAN German Legal Fanfold, 8 1/2 x 13 in.
Example
// Set the paper size to A4
oPtrDevice:PaperSize := DMPAPER_A4