PaperSize property

Microsoft Visio Developer Reference

PaperSize property

   Example   

Gets or sets the paper size of a document.

Version added

4.5

Syntax

retVal = object.PaperSize
object.PaperSize = newVal

retVal

VisPaperSizes. The present page size.

object

Required. An expression that returns a Document object.

newVal

Required VisPaperSizes. The new page size.

Remarks

This is the equivalent of choosing a page size on the Page Size tab in the Page Setup dialog box (on the File menu, click Page Setup).The value of retVal and newVal can be one of the following VisPaperSizes constants.

Constant

Value

Description

visPaperSizeUnknown

0

Not known

visPaperSizeLetter

1

Letter 8 1/2 x 11 in

visPaperSizeLegal

5

Legal 8 1/2 x 14 in

visPaperSizeA3

8

A3 297 x 420 mm

visPaperSizeA4

9

A4 210 x 297 mm

visPaperSizeA5

11

A5 148 x 210 mm

visPaperSizeB4

12

B4 (JIS) 250 x 354 mm

visPaperSizeB5

13

B5 (JIS) 182 x 257 mm

visPaperSizeFolio

14

Folio 8 1/2 x 13 in

visPaperSizeNote

18

Note 8 1/2 x 11 in

visPaperSizeSizeC

24

C size sheet 17 x 22 in.

visPaperSizeSizeD

25

D size sheet 22 x 34 in.

visPaperSizeSizeE

26

E size sheet 34 x 44 in.