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

Configure the laser printer to accept the specified paper size


Syntax

hpPageSize(<cPageSize>)


Parameters

<cPageSize>
The name of the paper size to be loaded in the laser
printer.  The following values for <cPageSize> are supported:
"LETTER"        8 1/2' x 11' standard size paper.
"LEGAL"         8 1/2' x 14' paper.
"EXEC"          7 1/4' x 10 1/2' paper.
"A4"            210mm x 297mm
"LETENV"        3 7/8' x 7 1/2' Monarch envelope.
"BUSENV"        4 1/8' x 9 1/2' envelope.
"DLENV"         110mm x 220mm International DL envelope.
"C5ENV"         162mm x 229mm International C5 envelope.


Returns

0
Successful.

-11
Invalid paper specified.

-12
Wrong number of parameters passed.


Remarks

Initially, hpSetup() should be used at the start of all printouts to select
the paper size and properly configure your laser printer.  If at any time it
becomes necessary to change the paper size during the middle of a
printout, hpPageSize() can then be called, after a pause in your printing,
and the paper can be changed without any disruption to your program.

If you are using a different page size than the one you selected with this
function, the printer will prompt you to load the correct paper.

Printer Error Message     Explanation              Action To Take

PC LOAD[paper size]       The printer received     Load the correct paper
                          a command to             size which is
                          accept a paper size      designated on the
                          that is not currently    control panel.  To
                          loaded in the paper      override the command,
                          tray.                    press CONTINUE.

EC LOAD[env size]         The printer received     Load the correct type of
                          a command to             envelope in the
                          accept an envelope       envelope tray, then
                          size that is not         select the correct
                          currently loaded.        envelope size from the
                                                   control panel and press
                                                   ONLINE.


Support By

All HP Laserjet Printers support 'LETTER', 'LEGAL', 'EXEC', 'A4'.
HP Series II, IID, IIP, IIP+, III, IIID, IIIP, IIIsi also support 'LETENV',
"BUSENV", "DLENV", "C5ENV".


Example

hpPrintOn()
hpConfig('LETTER', 'L')
hpSetFont('PELITE 12', 'M')
.
.      // Application to print on letter size paper
.
hpPageSize('LEGAL')
.
.      // Application to print on legal size paper
.
hpReset()
hpPrintOff()

See Also: hpConfig() hpFeed()

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