[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

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