× 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.




Actually for the above sequence of characters (8U in the O-specifications, according to references and manuals, the desired result is the font in the print out should be " Roman 8". When we try generating the reports by executing these programs, we have these special characters appearing in the hard copy (Print out of the spool).

This is a bad idea. Don't hard-code printer escape codes in your RPG programs unless you can find absolutely no other way to get the job done.

It's a much better idea to specify the font in the print file, and let the iSeries or some emulation software translate it to the printer's escape sequence.

That'll accomplish the following:

a) It'll be much easier to read the code.

b) You'll be able to switch to different printers that speak a different language without having to re-write your RPG program.

Need some inputs/suggestions in getting the desired results. It will be of great help if we could have a list of all such sequences and their interpretation. If possible, alternative methods to acheive the requirement. Thanks in advance for the same.

Hmmm... There are thousands of PCL codes. And there are perhaps a dozen different versions of PCL. And many printers have some of their own PCL codes that aren't part of the PCL specs. Therefore, it's not really possible for me to list them all in this message. However, a quick Google search should turn up some places to get started:

http://www.google.com/search?q=PCL+Technical+Reference

But, again, I really recommend that you don't code the PCL directly.

As for why your particular code prints the escape sequencees instead of changing the font, that's really difficult to say since I've never seen your code.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.