I just tried to pass the print job off using kprinter

http://printing.kde.org/overview/kprinter.php

using in my terminal settings

CLOSE EXECUTE: W *27,"E" U IO K IO(1,IO) C IO ZSYSTEM "kprinter --nodialog --system cups -P HL1240 "_ION_" "_IO

Then sending a test job resulted in a much nicer looking output.

DEVICE: HL1240  HOME LAN

Do you want your output QUEUED? NO//   (NO)
[ 2 pages * 1 copy ] left in /tmp/kde-ibk/kdeprint_sjs3cDRw
1 lines were wrapped
1 non-printable characters

Not sure what is causing the non-printable characters - I will look at it in more detail but kprinter appears to take care of all the housekeeping as far as creating (in my case emulating) PS output. And it indeed looks much nicer!

K.S. Bhaskar wrote:
FWIW, I would advise against sending escape sequences or PCL directly to a printer - makes the printer hard to replace. It would be better to send either straight ASCII text or, for nicer printouts, Postscript. Since there is a postscript driver on Linux for (almost) every printer, you are not tied in to a specific printer.

-- Bhaskar

Kevin Toppenberg wrote:

Mark,

I like your solution.  It is certainly more succinct
than mine was.

From your code, it appears that IO is set to equal $I
before PRE-OPEN EXECUTE code it set.  I didn't realize
that the variable ION was set to the device name.

We have a HP laserjet 5.  I haven't tried sending it
escape sequences (as you seem to be doing.) When I
tried to choose subtype that was 12point, it didn't
print right.  What are you doing with those escape
sequences?

Kevin



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members


--
Ismet B. Kursunoglu, MD, FCCP
Medical Director
Alaska Clinic, LLC
3750 Country Field Circle, UNIT B
Wasilla, Alaska 99654
[EMAIL PROTECTED]
(907)357-7240


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to