This property sets the printer's paper size.

[C++Builder]   imagekitcontrolname->PrintDraw->PaperSize [ = short ]
[Delphi]   imagekitcontrolname.PrintDraw.PaperSize [ = Smallint ]

Property Value

Value Explanation
1 Letter, 8.5 x 11 in (DMPAPER_LETTER)
2 Letter Small, 8.5 x 11 in (DMPAPER_LETTERSMALL)
3 Tabloid, 11 x 17 in (DMPAPER_TABLOID)
4 Ledger, 17 x 11 in (DMPAPER_LEDGER)
5 Legal, 8.5 x 14 in (DMPAPER_LEGAL)
6 Statement, 5.5 x 8.5 in (DMPAPER_STATEMENT)
7 Executive, 7.25 x 10.5 in (DMPAPER_EXECUTIVE)
8 A3, 297 x 420 mm (DMPAPER_A3)
9 A4, 210 x 297 mm (DMPAPER_A4)
10 A4 Small, 210 x 297 mm (DMPAPER_A4SMALL)
11 A5, 148 x 210 mm (DMPAPER_A5)
12 B4, 250 x 354 mm (DMPAPER_B4)
13 B5, 182 x 257 mm (DMPAPER_B5)
256 Custom defined (DMPAPER_USER)

( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI

Explanation

The PaperSize property sets the printer's paper size. To retrieve the PaperSize property value, first execute the GetDevModeHandle or GetDevModeInfo method, after which the value can be retrieved from the PaperSize property. To set the value of the PaperSize property, execute the SetDevModeInfo method. Although only 14 property values are listed, it is possible to set values higher than that. For details, please refer to WindowsAPI.

Note: The PaperSize setting is dependent upon the printer driver. Because of this, it is possible that the setting has no affect or an affect different than expected. For details about printing orientation, please refer to the printer manufacturer's manual.

Setting this value

This value can be set at runtime.

Retrieving this value

  This value canbe retrieved at runtime.

 

The ImageKit10 VCL is a product created by Newtone Corporation