setpapersize (not supported in Axiell Collections)

Syntax

code = setpapersize (number)

Arguments

code: integer

number: see table below

Platform

Windows (not supported in Axiell Collections and RunAdapl)

Meaning

Sets the paper format. Each number stands for a certain format. The return code is the error code of the action; this will be 0 if the action is successful. An error code other than zero signifies the error code of the operating system, and will occur, for instance, if the desired paper size is not supported by the selected printer.
The following formats are supported by setpapersize:

Number

Format type

1

Letter 8½ x 11 in

2

Letter Small 8½ x 11 in

3

Tabloid 11 x 17 in

4

Ledger 17 x 11 in

5

Legal 8½ x 14 in

6

Statement 5½ x 8½ in

7

Executive 7¼ x 10½ in

8

A3 297 x 420 mm

9

A4 210 x 297 mm

10

A4 Small 210 x 297 mm

11

A5 148 x 210 mm

12

B4 (JIS) 250 x 354

13

B5 (JIS) 182 x 257 mm

14

Folio 8½ x 13 in

15

Quarto 215 x 275 mm

16

10x14 in

17

11x17 in

18

Note 8½ x 11 in

19

Envelope #9 3 7/8 x 8 7/8 in

20

Envelope #10 4 1/8 x 9½ in

21

Envelope #11 4½ x 10 3/8 in

22

Envelope #12 4 ¾ x 11 in

23

Envelope #14 5 x 11½ in

24

C size sheet

25

D size sheet

26

E size sheet

27

Envelope DL 110 x 220 mm

28

Envelope C5 162 x 229 mm

29

Envelope C3 324 x 458 mm

30

Envelope C4 229 x 324 mm

31

Envelope C6 114 x 162 mm

32

Envelope C65 114 x 229 mm

33

Envelope B4 250 x 353 mm

34

Envelope B5 176 x 250 mm

35

Envelope B6 176 x 125 mm

36

Envelope 110 x 230 mm

37

Envelope Monarch 3 3/8 x 7½ in

38

6 3/4 Envelope 3 5/8 x 6½ in

39

US Std Fanfold 14 7/8 x 11 in

40

German Std Fanfold 8½ x 12 in

41

German Legal Fanfold 8½ x 13 in

 

 

The following formats are only supported under Windows 95 and Windows NT 4.0, or higher.

42

B4 (ISO) 250 x 353 mm

43

Japanese Postcard 100 x 148 mm

44

9 x 11 in

45

10 x 11 in

46

15 x 11 in

47

Envelope Invite 220 x 220 mm

48

RESERVED--DO NOT USE

49

RESERVED--DO NOT USE

50

Letter Extra 9¼ x 12 in

51

Legal Extra 9¼ x 15 in

52

Tabloid Extra 11.69 x 18 in

53

A4 Extra 9.27 x 12.69 in

54

Letter Transverse 8¼ x 11 in

55

A4 Transverse 210 x 297 mm

56

Letter Extra Transverse 9¼ x 12 in

57

SuperA/SuperA/A4 227 x 356 mm

58

SuperB/SuperB/A3 305 x 487 mm

59

Letter Plus 8.5 x 12.69 in

60

A4 Plus 210 x 330 mm

61

A5 Transverse 148 x 210 mm

62

B5 (JIS) Transverse 182 x 257 mm

63

A3 Extra 322 x 445 mm

64

A5 Extra 174 x 235 mm

65

B5 (ISO) Extra 201 x 276 mm

66

A2 420 x 594 mm

67

A3 Transverse 297 x 420 mm

68

A3 Extra Transverse 322 x 445 mm