ITEM: AS2699L

USING ENSCRIPT COMMAND/TO SELECT PAPER TRAY



Question:

USING ENSCRIPT COMMAND/TO SELECT PAPER TRAY/NOT WORKING

ENV:  3.2.5, HP4 PRINTERS

DESC:  The customer is printing with the enscript command but for
       some reason it is defaulting to the upper tray.  The 
       customer said he doesn't know what to put in the field for
       "Paper Tray Name" in the MediaSizes file.

Response:

The enscript command does not generate a postscript or PJL
command to set the paper drawer.   In fact most functions of
the MediaSizes file do not function, and I would highly 
recommend that it not be used.  You can confirm this because
the command for changing paper trays in PostScript usually
looks like:
statusdict begin 0 setpapertray ... end
or something similar.

Probably the best way to select the paper tray with enscript
is to either modify the virtual printer _u attribute to select
the proper tray, or pipe the output of enscript to qprt and
use the -u flag.  Piping data with enscript works with the '-p -'
flag.  For example:
\# enscript -p - /etc/motd | qprt -Bnn -u0 -Pps
Selects the upper tray on my 4029, while:
\# enscript -p - /etc/motd | qprt -Bnn -u1 -Pps
selects the lower tray.

Response:

ACT:  Had the customer look at his _u attribute for the virtual
      printer and saw that it was already set to 1 which is 
      the value for the lower tray,  so we set the value 
      to 2 ( u=2 ) just to see what would happen and oddly enough
      it worked, the printer took the paper from the lower tray.
      I informed the customer that we could, also, try piping
      the enscript command into the qprt command, as described
      above, but the customer was happy with what the _u attribute
      set to 2.


Support Line: USING ENSCRIPT COMMAND/TO SELECT PAPER TRAY ITEM: AS2699L
Dated: December 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:25
Comments or suggestions? Contact us