PageWidth Property  
 

Gets and sets the width of the printed page, in inches.

Syntax

object.PageWidth [= value ]

Remarks

The PageWidth property specifies the width of the page, expressed in inches. If this property has not been explicitly set, the default page height of 8.5 inches is used, corresponding to standard US Letter paper.

The page height must be greater than zero. The actual page dimensions may be affected by the PrintOrientation property, which determines whether the document is printed in portrait or landscape orientation. When printing to a physical printer, the selected printer must support the requested paper size. To convert a measurement from centimeters to inches, divide the value in centimeters by 2.54.

The value of this property affects both printed documents and documents saved in PDF format.

Data Type

Double

See Also