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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Torn off PCL command 1

Status
Not open for further replies.

Igorfl

IS-IT--Management
Nov 23, 2004
4
US
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
Igor
 
Your sequences are as follows:
Code:
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:
<Esc>(19U<Esc>(s0p10h0s0b4099T
 
It did not work do U have any other suggestions?
Thank U
Igor
 
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
 
all this code turns on the font but does not turn it off.

Igor
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top