[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
sending esc codes to printer
- Subject: sending esc codes to printer
- From: Andrew Lin <alin@TECHNEGLAS.COM>
- Date: Tue, 2 Apr 2002 19:08:12 -0500
Hi all,
I've got several questions regarding esc sequences with HP printers.
First off, is it possible to toggle that cover sheet that prints on
a unix printer using an sqr? Or is that strictly controlled at
a hardware level? Is there some esc sequence that could
turn off that sheet?
Secondly, I'm trying to choose which tray to print to.
First I tried using the esc sequence to choose 'legal'
size in the hopes that the printer would be intelligent
enough to automatically choose the correct tray.
ENCODE '<27>&l3A' INTO $legal_code
print $legal_code (,) code
that didn't work.
Secondly, I tried to designate the actual tray (3).
encode '<27>&l5H' into $tray3
print $tray3 (,) code
that didn't work.
In either case, the printer tries to print to tray1. The user
must then manually tell the printer (HP4050N) to use tray 3.
(printer reports that tray 1 is empty, blinks in protest, user
presses go, and printer offers option to use tray 3 instead)
Does it matter where I print the encoded statement? I
print it early on in my sqr (before any other print statements).
(this is the PS check print program)
Any tips are greatly appreciated.
Thanks.
-Andrew