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

Re: Escape codes for printer control



Andrew,

Here's an example of PCL command written into a file then I just
use the copy command in dos to print the file.

The PCL command should print 'THIS IS TEST' in portrait using
legal size paper and it did what I want it to do:

.........

#include 'setenv.sqc'    !Set environment

begin-report

   Open 'C:\TEMP\PRTPCL.dat' as 1 for-Writing Record = 16:Fixed
   DO EMBED
   DO WRITER
   DO PRINTR
   CLOSE 1
end-report
BEGIN-PROCEDURE EMBED
  encode '<27>&l0L<27>&l3A' into $perforation_skip
END-PROCEDURE
BEGIN-PROCEDURE WRITER
  write 1 from $PERFORATION_SKIP:16
END-PROCEDURE
BEGIN-PROCEDURE PRINTR

  WRITE  1 FROM 'THIS IS A TEST  ':16
END-PROCeDURE


Note: Above SQR was ran using SQRW.exe (client)
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com