Sets or retrieves the printing orientation for the current printer.
XML N/A Scripting [ sMode = ] TEMPLATEPRINTER.orientation [ = sMode ]
sMode String that specifies or receives one of the following values.
- Print in portrait mode.
- Print in landscape mode.
The property is read/write. The property has no default value.
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.