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!

Beginner: Printing Bar Code39 help 1

Status
Not open for further replies.

zarkon4

MIS
Dec 16, 2003
641
US
I am new at this. I have a barcode font (code39), and am trying to print a bar code so a symbol scanner can scan it.
I printing it with a Visual Basic App. The bar code prints great on the laser printer, but it won't scan.

VB Code
Printer.FontName = BAR_CODE_FONT
Printer.FontSize = BAR_CODE_SIZE
Printer.Print "21280"

I'm obviously missing something here. Do I have to add special characters?

 
Yes.

Code39 requires Start and Stop characters; these are both the "*" character, so your output needs to be:

Printer.Print "*21280*
 
Thanks. I now feel very, very dumb due to the simplicity of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top