Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hprotate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpRotate()

Rotates printing orientation between portrait and landscape.  Allows printing
in both orientations on the same page


Syntax

hpRotate( <nDegrees> )


Parameters

<nDegrees>
The number of degrees to rotate.  Must be specified in
90 degree increments.  Supported values are 0, 90, 180, 270, and 360.


Returns

0
Successful.

-17
Invalid parameter type was passed.


Remarks

Use hpRotate() any time you need portrait and landscape printing on the
same page, for instance, when labeling axis' on graphs.


Support By

HP LaserJet Series IIIP, III, IIISI, and other printers supporting HPPCL 5.


Example

hpAtSay(1, 2, 'Portrait Orientation')
hpRotate(90)
hpAtSay(1, 2, 'Landscape Orientation')
hpRotate(180)
hpAtSay(1, 2, 'Reverse Portrait Orientation')
hpRotate(270)
hpAtSay(1, 2, 'Reverse Landscape Orientation')
hpRotate(0)
hpAtSay(3, 2, 'Back to Portrait')

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson