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

Creating barcodes through VB

Creating barcodes through VB

Creating barcodes through VB

I'm currently using VBA (or possibly VB6) and an Intermec 3240 with Printset v2.2.  What I would like to do is create a form in VB that when print is pressed, a barcode is created and printed out.

||||||||||||||| (barcode)
     123456     (text)

A very simple barcode that just has the barcode on top and text on the bottom on a 0.75"x05" label.  Does anyone have a VB example of how I would go about doing this?  I have the manual with all of the intermec commands, but I still don't quite understand how I can get this to print using VB.  Currently I have a form created that has box for the text and a box for the qty to be printed, as well a print button.  Any feedback would be much appreciated.  Thanks in advance.


RE: Creating barcodes through VB

have not done this with vb or vba but have done it in other languages.
what i have done in the past is to build a string for the barcode that includes the ipl commands along with the actual data.  you then issue the string to the printer (put, display, etc.)

RE: Creating barcodes through VB

This FAQ is for Zebra Printers but it can be adapted for any printer.
Basically you design a label in a design program and then print it to a file instead of the printer. All of these barcode printers use ESC codes to print this will create an ASCII text file. These ESC code can be sent directly to the printer with out any driver or software and create a label. Next you open that file determine where the actual data is from the ESC characters. You modify this ESC character codes so your VB app puts in variable data in between the ESC code sequences. Basically you are creating a Template with variables for your data. The FAQ shows an example of this.

DougP, MCP, A+

RE: Creating barcodes through VB

Another solution is to use one of the Barcode design and print solutions such as Seagull Scientifics Bartender.  I use this solution in a VB.NET manufacturing solution and it runs pretty well. The enterprise product has an ActiveX Control that can be used from VBA/VB6.

RE: Creating barcodes through VB

Another solution is to load a barcoding font into your printer, and use the right escape codes to print that font. Some software fonts are freeware. years ago I purchased a factory ROM to add barcodes to an Output Technology Corp three-head impact printer. Worked very well coding from Revelation RBasic.

Fred Wagner


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