Peter
I just included the PCL5 commands in the text of the printout. The only
problem that I had was making sure that the lines of PCL were less than 140
bytes long. If they got over 140 bytes long, the system put a CR:LF in the
middle of it. Looked real good.
It was really quite easy and fun to do.
Steve
I was printing to HP LaserJet 4s. It worked fine in a WinNT
envionment. At 03:19 PM 6/8/05 -0400, you wrote:
Ok, we've tracked this down further -- the forms which are having trouble
printing are using two subroutines my programmer's made (and used
successfully in lots of OS scenarios excepting Linux) which 1) define a
lot of printer control codes such as:
ESC = CHAR(27)
LANDS = ESC:"&l1O"
PORTR = ESC:"&l0O"
COURR = ESC:"(8U" ;* & LINE PRINTER
TMSRM = ESC:"(0U" ;* & HELV BOLD
XXXXM = ESC:"(10U" ;*UNK
HALFL = ESC:"="
FFPRM = ESC:"Z" ;** FORM FEED PROMPT
and 2) draw the boxes we were seeing, respectively. When I capture the
output stuck in the lp queue it turns out to be PCL, which we can turn
into a PDF with a converter, and which appears the same way as I was able
to get printout, i.e. boxes but not the accompanying text.
Alternatively, if I use enscript rather than lp in the driver, I can get
the text output with all the PCL codes inline.
I know wew're getting pretty site specific here but has anyone run into
this previously? How do you typically handle laserjet output where you
need some minimal graphics, is this customized set of printer codes still
sensible & I just need to figure out how to get the printer to interpret
them correctly & fire off the resulting output?
Any hints/tips/ideas gratefully received, and again, thanks to everyone
who's replied here, very much a help.
--
Peter Ivanick
Sr. Programmer/Analyst
School of Veterinary Medicine, University of Pennsylvania
Email: [EMAIL PROTECTED]
Phone: 215.573.2306 Fax: 215.573.8777
http://www.vet.upenn.edu/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
------
Steven M Wagner
[EMAIL PROTECTED]
Cary, North Carolina, United States of America
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/