×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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

Printing Code 39 Bar Codes from DOS

Printing Code 39 Bar Codes from DOS

Printing Code 39 Bar Codes from DOS

(OP)
Is there any way to print barcodes from DOS?

I downloaded a program called Thunder Bar from this website.  But I couldn't get this program to print the barcodes, they appear as text.

http://www.adams1.com/pub/russadam/dos.html

Any help would be greatly appreciated.

RE: Printing Code 39 Bar Codes from DOS

If you are printing to a LaserJet, get a soft font in HP Bitmap format, and you're in business.

Jim Asman
jlasman@telus.net

RE: Printing Code 39 Bar Codes from DOS

(OP)
I am printing to an HP LaserJet that is on a network.  Where would I be able to find a soft font in HP bitmap format?  Do I need any special font managers for the printer?

RE: Printing Code 39 Bar Codes from DOS

Just get a barcode true type font from the web.  You can also use the HP Bar Codes and More font product (a SIMM, DIMM or cartridge), but control is a little harder and the barcode size is limited.  For specialized apps, you can even use a program (C, C++) to draw small PCL or GL/2 rectangles (to build barcodes).  There is a book about HP PCL and barcodes that shows how.  I don't have the name of the book right now.
Mike

RE: Printing Code 39 Bar Codes from DOS

You can't use a TrueType font from DOS. You should be able to find a bitmap 3of 9 font on the web.

In use, you need to assign the font an ID number, and that is used to call the font from your application. I typically set the barcode font up as the secondary font if I am printing other text where the text is the primary font.

Lets make the font ID 39.

If you send to the printer ...

<esc>*c39D      Declare Font ID
Font File       Bitmap Font Info
<esc>*c5F       Make Font Permanent (Not Necessary, but
                                     would allow you to
                                     send font to printer
                                     before your application
                                     began)

Inside your application...

<esc>)39X       Decare font 39 as the secondary

To print your barcode data...

chr(14)*barcodedata*chr(15)

The chr(14) activates secondary font, and chr(15) returns you to the primary.

Jim Asman
jlasman@telus.net

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