SetPageSizeA

Page properties, Page layout

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetPageSize and string arguments are interpreted using the current SetAnsiMode code page

Use this function to set the current page to a named size, for example "A4" or "Letter Landscape".

Syntax

Delphi

Function DLSetPageSizeA(InstanceID: Integer; PaperName: PAnsiChar): Integer;

DLL

int DLSetPageSizeA(int InstanceID, const char * PaperName);

Parameters

PaperNameThe name of the paper, one of the following: A0 to A10, B0 to B10, ISOB0 to ISOB10, C0 to C7, DL, Letter, Legal, Statement, Tabloid, Ledger, Executive, Folio, Size8x11, QuadA0, DoubA0, B0Plus, EnvB4, EnvB5, EnvC6, EnvDL, EnvMonarch, Env9, Env10, Env11, ANSIA, ANSIB, ANSIC, ANSID, ANSIE, ARCHA, ARCHB, ARCHC, ARCHD, ARCHE1, ARCHE, Shiroku, G1K, Large8K, Standard8K, Crown8K, ROC8K, Large16K, Standard16K, Crown16K, ROC16K, USBC, EUBC, ASBC, ID1, ID2, ID3, OneInch, TwoInch, L2Inch, USVisa, P2R, P3R, P4R, P4D, P5R, P6R, P8R, S8R, P10R, P11R, P12R, P16R, P20R, P24R. You can make a landscape page by adding the word Landscape after the paper name, for example "A3 Landscape".

Return values

0The specified paper name was not valid
1The page was resized successfully