Microsoft KB Archive/324360

= INFO: LANDSCAPE_CC90 and LANDSCAPE_CC270 Orientation Options Are Not Interchangeable =

Article ID: 324360

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Windows XP Driver Development Kit, when used with:
 * Microsoft Windows XP Professional
 * Microsoft Win32 Device Driver Kit for Windows 2000, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q324360



SUMMARY
LANDSCAPE_CC90 and LANDSCAPE_CC270 are standard Microsoft Universal Printer Driver (Unidrv) printer options that are associated with the orientation printer feature. However, these orientation options are not always interchangeable.



MORE INFORMATION
The LANDSCAPE_CC90 option only applies if the printer is operating in landscape mode. That is, the printer must understand landscape coordinates. Alternatively, the LANDSCAPE_CC270 option only applies if the printer is operating in portrait mode. If the printer does not understand a Landscape command (for example, similar to the Ec&l1O Printer Control Language [PCL] Landscape command), the printer cannot operate in the LANDSCAPE_CC90 orientation.

As a result, you cannot assign the LANDSCAPE_CC90 option in the generic printer description (GPD) for simpler printers that do not have support for landscape mode. These printers must use the LANDSCAPE_CC270 option.

A printer that supports landscape mode can operate with the LANDSCAPE_CC270 orientation. To do this, you cannot issue the Landscape command to the printer, even when the user selects the Landscape option. In other words, you must send a Portrait command in the &quot;Landscape&quot; portion of the &quot;*Feature: Orientation&quot; section of the GPD instead of sending the Landscape command to the printer. For example: *Feature: Orientation {   *rcNameID: =ORIENTATION_DISPLAY *DefaultOption: PORTRAIT *Option: PORTRAIT {       *rcNameID: =PORTRAIT_DISPLAY *Command: CmdSelect {           *Order: DOC_SETUP.60 *Cmd: =ORIENT_PORTRAIT_CMD }   }    *Option: LANDSCAPE_CC270 {       *rcNameID: =LANDSCAPE_DISPLAY *Command: CmdSelect {           *Order: DOC_SETUP.60 *Cmd: =ORIENT_PORTRAIT_CMD }   } } This behavior of Unidrv for the LANDSCAPE_CC90 and the LANDSCAPE_CC270 orientation options is designed to handle the different coordinate systems that the printer uses when in portrait mode versus in landscape mode:
 * A printer in portrait mode perceives the origin of the coordinate system to be at the upper-left corner of the page, with the x-coordinate increasing to the right and with the y-coordinate increasing down the page.
 * A printer in landscape mode perceives the origin of the coordinate system to be at the lower-left corner of the page, with the x-coordinate increasing up the page and with the y-coordinate increasing to the right.

Unidrv accounts for these different coordinate systems based on the LANDSCAPE_CC90 and the LANDSCAPE_CC270 orientation options. Therefore, these two options are not compatible.

Keywords: kbinfo KB324360

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.