[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: problems with setting which tray to print to
- Subject: Re: problems with setting which tray to print to
- From: Jon Alsager <Jalsager@ISIF.STATE.ID.US>
- Date: Thu, 4 Apr 2002 08:33:34 -0700
- Thread-index: AcHbpIvaLFV18oMyRNS+6pKTZB61fwASFeEw
- Thread-topic: problems with setting which tray to print to
Andrew --
This works for us. In a procedure called initiate_processing (called prior to
the Main procedure), we have the following:
let $drawthree = chr(27)||'&l3H'
which is directing the output to tray 3. Then prior to the first actual print
command, we issue:
print $drawthree ()
rather than using the print-direct command.
As someone previously mentioned, a new-page command may send an escape E
(printer reset). We had that happen on one report, so we simply repeated the
print $drawthree line after the new-page and it fixed the problem.
hth
Jon
-----Original Message-----
From: Andrew Lin [mailto:alin@TECHNEGLAS.COM]
Sent: Wednesday, April 03, 2002 2:25 PM
To: SQR-USERS@list.iex.net
Subject: problems with setting which tray to print to
Hi all,
I've tried sending all sorts of esc sequences to tell the printer
to use tray 3, but it always seems to ignore what I
have in the SQR. Instead it tries to print to tray 1,
and the user must manually switch it to 3.
Here are some of the things I have tried:
! ENCODE '<27>&l3A' INTO $legal_code
! print $legal_code (,) code
encode '<27>&l0H' into $tray3
print-direct printer=HPLASERJET $tray3
! encode '<27>&l3a0H' into $leg-tray3
! print-direct printer=HPLASERJET $leg-tray3
I also tried appending the esc codes to the
perforation skip command used elsewhere
in the sqr, as well as the printer-init in
my declare-layout in my sqc:
#define PRINTER_CHQADV HPLASERJET
declare-printer HPLASER
type={PRINTER_CHQADV}
! init-string=<27>E<27>&l0L
init-string=<27>E<27>&l0l3a5H
! | --> Perforation Skip
! --> Reset
font=5
point-size=7
symbol-set=19U
end-declare
I've tried using both print () code and print-direct.
If I add an <27>E (reset) before the rest of the esc
sequence, then it does reset (and thus screw up the
rest of the print). Furthermore, later on in the
SQR, I send esc sequences to activate the micr;
the micr esc sequence works fine.
Any other suggestions? For now, I've just been
playing with a one-page printout, so I don't think
this has anything to do with the printer being
reset by a new-page.
Thanks.
-Andrew