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>hpduplex()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpDuplex()

Toggle duplex mode on or off for printers which support duplex printing


Syntax

hpDuplex(<lOn> [, <cBindingEdge>])


Parameters

<lOn>
A logical (.T. or .F.) which specifies whether duplex
mode should be set on or off.

<cBindingEdge>
Determines, along with the orientation of the page,
whether or not the back side of the page will be printed
"upside-down".  Defaults to 'LONG'.  Valid values for
<cBindingEdge> are:
"SHORT"         Short Edge Binding
"LONG"          Long Edge Binding
If the page is in portrait orientation and SHORT edge
binding is selected, the back side of each page will be
"upside-down" in relation to the first.  This allows pages
to be read easily if bound at the top.

If the page is in portrait orientation and LONG edge
binding is selected, the back side of each page will be
"right-side-up" in relation to the front.  This allows
pages to be read easily if bound on the left edge.
If the page is in landscape orientation and SHORT edge
binding is selected, the back side of each page will be
"right-side-up" in relation to the front.  This allows
pages to be read easily if bound on the left edge.

If the page is in landscape orientation and LONG edge
binding is selected and , the back side of each page will
be "upside-down" in relation to the front.  This allows
pages to be read easily if bound on the top edge.


Returns

0
Successful

-12
Wrong number of parameters passed.

-17
Incorrect parameter type was passed.


Remarks

Considering today's environmental awareness, it makes sense to take
advantage of the duplex capability of those laser printers which support
it.  Use hpDuplex() to quickly toggle duplex mode on and off.


Support By

HP Laserjet series IID, IIID, IIISI (w/ duplex option)


Example

To toggle duplex mode on:
hpDuplex(.T.)

To toggle duplex mode on with short edge binding:
hpDuplex(.T., 'SHORT')

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