How to generate barcode (number)

Fury

Active member
Joined
Oct 12, 2007
Messages
28
Programming Experience
Beginner
Hy all,

I'm working on a final project for school. It is a warehouse application.
For this application I will need to generate a barcode.
I have read some articles online and found out that I could use the code 39 barcode font.
I just don't fully understand how to generate the unique barcode. Could someone please help me?
 
The font is just about displaying the barcode as bars. It has nothing to do with the value itself. If you want to generate barcodes then you can either just generate random numbers and test the result against a list of previously generated values to make sure it doesn't already exist, or else just use sequential values. If you want to go the first option then you'd need to use a Random object to generate each digit.
 
If you want a specific barcode created, let me know what you want encoded and I'll attach a graphic of it :D
 
Thank you for the reply! Is there a maximum or minimum amount of characters needed for the barcode to work? If I generate a unique number, all I have to do is print it with the font? Will I be able to select the font into vb.net?
 
Thank you for the reply! Is there a maximum or minimum amount of characters needed for the barcode to work? If I generate a unique number, all I have to do is print it with the font? Will I be able to select the font into vb.net?
You've already stated that you know what barcode format you're using. So, what does the documentation for that format say? It will tell you what values are valid.

As for the font, you'll be able to select it as long as it's installed, which means you'll have to install it when you install your app.
 
Back
Top