× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Paul,

I've tried that by using "WRITE ... AFTER ADVANCING 0 LINES" in my COBOL
program. That's what I normally use for over-printing. Unfortunately, when I
take a look at the data stream sent to the printer, there is actually a
print positioning command at the beginning each line. That positioning
command stays the same for each line that I do the "WRITE .. AFTER ADVANCING
0 LINES" for (i.e. it overprints!), but it interferes with the PCL commands
that I'm trying to send.

Sigh..!
Richard

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Paul Tykodi
Sent: Thursday, December 04, 2003 3:31 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Writing PCL to an AS/400 attached HP laser printer


Dear Richard,

The programming trick that I have seen other people use is to write all of
the PCL commands on line 1. Your program thinks you are printing data on top
of itself and therefore sends no line termination commands.

HTH

Best Regards,

/Paul
--
Paul Tykodi
National Product Manager
Print4sight Inc.

p: 603-431-0606 x115
f: 603-436-6432
E-mail: p.tykodi@xxxxxxxxxxxxxxx
www.print4sight.com

>date: Thu, 4 Dec 2003 10:44:27 -0500
>from: "Richard Casey" <casey_r@xxxxxxxxxxxxxxxx>
>subject: Writing PCL to an AS/400 attached HP laser printer
>
>Hi!
>
>I'm trying to send PCL commands to my HP laser printer. After browsing
>through the archives, I found that I can just build the necessary character
>string (using X'1B' for the <esc> character) and send it to the printer.
>That works great until the length of my PCL command is longer than my print
>line length. If I break my PCL command into 2 lines and send them to the
>printer, I get print positioning commands inserted between the two lines.
Is
>there a way to send lots of data to the printer without getting those pesky
>print positioning commands in the way?
>
>Thanks in advance,
>Richard Casey



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.