PageSetSizeΒΆ
PageSetSize sets the paper size in centimeter or selects a predefined paper size.
-
bool = PageSetSize(hPage, dmPaperSize)
-
bool = PageSetSize(hPage, rsWidth, rsHeight)
Return Value
bool is TRUE if the size could be set.
Parameters
-
hPage
Identifies the page.
-
dmPaperSize
dmPaperSize is the index of one of the following values:
Name Index Size / Description DMPAPER_LETTER 1 Letter 8 1/2 x 11 in DMPAPER_LETTERSMALL 2 Letter Small 8 1/2 x 11 in DMPAPER_TABLOID 3 Tabloid 11 x 17 in DMPAPER_LEDGER 4 Ledger 17 x 11 in DMPAPER_LEGAL 5 Legal 8 1/2 x 14 in DMPAPER_STATEMENT 6 Statement 5 1/2 x 8 1/2 in DMPAPER_EXECUTIVE 7 Executive 7 1/4 x 10 1/2 in DMPAPER_A3 8 A3 297 x 420 mm DMPAPER_A4 9 A4 210 x 297 mm DMPAPER_A4SMALL 10 A4 Small 210 x 297 mm DMPAPER_A5 11 A5 148 x 210 mm DMPAPER_B4 12 B4 250 x 354 DMPAPER_B5 13 B5 182 x 257 mm DMPAPER_USER 256 User defined size
-
rsWidth
rsWidth is the page width in centimeters. Valid range is 1.0 to 100.0 cm.
-
rsHeight
rsHeight is the page height in centimeters. Valid range is 1.0 to 100.0 cm.
id-804086