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

Select how paper is fed into the laser printer


Syntax

hpFeed(<cFeedType>)


Parameters

<cFeedType>
The type of paper feed TO USE.  The following are valid
values for <cFeedType>:
"MANUAL"        Manual paper feed
"TRAY"          Tray feed
"ENV"           Manual envelope feed
"TRAY1"         Tray 1
"TRAY2"         Tray 2


Returns

0
Successful.

-12
Wrong number of parameters passed.

-15
Invalid feed method specified.


Remarks

When performing a print job which involves changing between different
methods of paper feed, use hpFeed() so that your laser printer will be
automatically configured correctly.  Now, there's no more need to mess
around with the user control panel, or confusing escape codes.
hpFeed() will automatically set up your laser printer to speed up the
printing process. When selecting tray feed, the default page size is
determined by the installed paper tray.

When using hpFeed() with the Laserjet Series II printer, you may
receive the following control panel messages if your printer encounters
some difficulty.

Printer Error Message      Explanation            Action To Take

PF FEED [paper size]       The printer received   Feed paper through the
                           a command to           manual paper feed
                           accept manually fed    slot.  To override the
                           paper.                 command, press CONTINUE.

PF FEED [env. size]        The printer received   Feed envelope through
                           a command to           the manual paper feed
                           accept manually fed    slot.  To override the
                           envelopes.             command, press CONTINUE.


Support By

The following printers support these hpFeed() features:

Feature                    Printer

Manual paper feed          All HP Laser Printers except the HP 2000

Tray feed                  All HP Laser Printers

Manual envelope feed       HP Series II, Series IID, Series IIP, Series
                           IIP+, Series III, Series IIID, Series IIIP, Series
                           IIIsi

Tray 1, Tray 2             HP Series IIP, IIP+, IIIP (w/ option), IID, IIID,
                           IIISI, 2000


Example

hpPrintOn()
hpConfig()
hpSetFont()
hpFeed('MANUAL')
.
.       // routine to print using manual feed
.
hpFeed('TRAY')
.
.       // routine to print using tray feed
.
hpReset()
hpPrintOff()

To print envelopes through the manual paper feed slot (of a Series II or
IID printer) using Courier 10 font and Letter size envelopes:

hpPrintOn()
hpConfig('LETENV', 'L')
hpSetFont()
hpFeed('ENV')
.
.   // feed and print envelopes
.
hpReset()
hpPrintOff()

See Also: hpPageSize()

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