Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to put PCL comments?

Status
Not open for further replies.

martincab

Programmer
May 12, 2003
39
US
Anybody knows how can i put PCL comments inside an ascii file?. I mean like c comments: /* comment */

Thanks in advance.

Martin
 
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 &quot;This is a comment&quot;;<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 &quot;;&quot; semicolon precedes the <esc>%0A




Jim Asman
jlasman@telus.net
 
Thanks a lot!

i will use it to make &quot;ESC/P READY&quot; pcl ascii files.

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

Jim Asman
jlasman@telus.net
 
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
 
Eh, eh, eh, exactly sir.

Martin Cabrera
Oracle DBA/Programmer
 
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 &quot;reverse&quot; 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 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top