Share via


orientation property

Sets or retrieves the printing orientation for the current printer.

Syntax

JScript
p = object.orientation

 

Property values

Type: String

One of the values in the Property Values section.

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.