Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to put PCL comments?

How to put PCL comments?

How to put PCL comments?

Anybody knows how can i put PCL comments inside an ascii file?. I mean like c comments: /* comment */

Thanks in advance.


RE: How to put PCL comments?

The only "legal" way that I can think of is jump to HP-GL/2 and use the comment command there. For example ...

pcltxt pcltxt<esc>%0B CO "This is a comment";<esc>%0A

The comment must be in quotes. When you return from the comment the cursor should be in the same location it was before the operation began. Make sure the ";" semicolon precedes the <esc>%0A

Jim Asman

RE: How to put PCL comments?

Thanks a lot!

i will use it to make "ESC/P READY" pcl ascii files.


RE: How to put PCL comments?

That comment would print if you sent the file to an epson printer.

Jim Asman

RE: How to put PCL comments?

You're right. Normally the files will be printed on a PCL printer, but once in a while, the file will be printed to an epson printer. In this case the file will be converted to esc/p with awk. To do this the esc/p commands will be put inside the pcl comments and awk command will remove the pcl commands (comments included) and thus we will obtain an ESCP file .

Thanks for the tip.
Martin Cabrera

RE: How to put PCL comments?

┬┐Simpson Smithers?

RE: How to put PCL comments?

Eh, eh, eh, exactly sir.

Martin Cabrera
Oracle DBA/Programmer

RE: How to put PCL comments?

You can make a macro with text in it and then don't execute it.

You can make the text in 12pt printer resident Courier, but as "reverse" or white text.

You can embed a numeric value using an undocumented Esc(s#Z escape.

There is a HIDETEXT.PCL file in the .\scripts\hidetext folder of the PCLTool SDK demo at www.pcltools.com.  The PCLCodes program that is included in the demo is probably the most useful tool you could use to debug the PCL that you are generating.  And, PCLTool program saves paper in not having to print everything to test it out.  You can view it on the screen instead.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close