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

Torn off PCL command

Torn off PCL command

Torn off PCL command

hi everyone. Can anyone help?
I am using a command esc(70X data esc(3@esc &l0H
to turn on the barcode font when printing on preprinted .hp form. It turns on the bar code but it does not turn off for the nex value. Does anyone know how to turn it off?

Thank you in advance

RE: Torn off PCL command

Your sequences are as follows:


Offset(dec)  Type                   Sequence          Data / Interpretation
¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
0000000000  PCL Complex            <Esc>(70X         Select Primary Font by ID
0000000005  Data                                     data
0000000009  PCL Complex            <Esc>(3@          Primary Font - Select Default
0000000013  PCL Complex            <Esc>&l0H         Paper Source: Unchanged (eject page)

Your bar code font is presumably loaded into font slot 70; the 'data' is then printed with this font; the next sequence I believe should reset the font to the user-environment (front panel) default setting.

If it doesn't, you would need another font select sequence to select the required font; e.g. for Courier 10cpi:

RE: Torn off PCL command

It did not work do U have any other suggestions?
Thank U

RE: Torn off PCL command

Try this...

esc)70X ^N data ^O

esc)70X          Declares font ID 70 sa secondary font
^N = chr(14)     Ctrl-N - Activates secondary font
data             Barcode data
^O = chr(15)     Ctrl-O - Shifts back to primary font

Jim Asman

RE: Torn off PCL command

all this code turns on the font but does not turn it off.


RE: Torn off PCL command

The code that DansDad suggested or mine should both do what you want.

Now in the code I gave you, make sure that you do NOT
have esc(70X anywhere in the table.

Jim Asman

RE: Torn off PCL command

why use a bercode font. i have written a program to insert code39 and code128 barcodes into any pcl by using the rectagle pcl commands. it written in vbdos.

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