INFO: LANDSCAPE_CC90 and LANDSCAPE_CC270 Orientation Options Are Not Interchangeable (324360)



The information in this article applies to:

  • Microsoft Windows XP Driver Development Kit (DDK), when used with:
    • the operating system: Microsoft Windows XP
  • Microsoft Windows 2000 Driver Development Kit (DDK), when used with:
    • the operating system: Microsoft Windows 2000

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 "Landscape" portion of the "*Feature: Orientation" 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.

Modification Type:MinorLast Reviewed:7/22/2004
Keywords:kbinfo KB324360