Export (0) Print
Expand All

orientation Property

Sets or retrieves the printing orientation for the current printer.

Syntax

XML N/A
Scripting [ sMode = ] TEMPLATEPRINTER.orientation [ = sMode ]

Possible Values

sMode String that specifies or receives one of the following values.
portrait
Print in portrait mode.
landscape
Print in landscape mode.

The property is read/write. The property has no default value.

Remarks

The value of the orientation property is always consistent with the information returned by the pageHeight and pageWidth properties. In other words, if the printer is in portrait mode, the pageHeight is greater than the pageWidth. If the printer is in landscape mode, the pageWidth is greater than the pageHeight.

The orientation property was introduced in Microsoft Internet Explorer 6.

Applies To

TEMPLATEPRINTER

Community Additions

ADD
Show:
© 2014 Microsoft