Quick Search for:  in language:    
CHECK,Barcode,generator,with,bar39,bar128,SIM
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,290,928. lines
 Jobs: 203. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!Taskbar Icon With a Borderless Form
By Immortal Tako on 12/24

(Screen Shot)

ErrorManager
By Cyber Chris on 12/24


Open and Compact Protected Db
By Nicola La Rocca on 12/24


Click here to see a screenshot of this code![Winsock Simple Multiplayer Game]
By andrej Kolla on 12/24

(Screen Shot)

soundex_functio n
By Joseph Varghese on 12/24


QSort Program
By Bill Adams on 12/24


Click here to see a screenshot of this code!Latest E-Santa Greeting
By anoopsihag on 12/24

(Screen Shot)

Click here to see a screenshot of this code!Matrix Inverse and Transpose Calculator
By Vagelis Plevris on 12/24

(Screen Shot)

Click here to see a screenshot of this code!Class to draw a shaded frame to a form/image/pict ure
By Fosters on 12/24

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

Barcode Generator ( Code 39 and Code 128 ) with GIF Export and Documentation

Print
Email
 
winzip icon
Submitted on: 10/4/2002 9:14:37 AM
By: joyprakash saikia  
Level: Intermediate
User Rating: By 93 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code 18169 times.
 
(About the author)
 
     This a Barcode generator with bar39 and bar128. THIS BARCODE GENERATOR IS SIMILAR TO INDUSTRY RENOWN PRODUCT 'ACTIVEBARCODE' IN FUNCTIONALITY. I've put detail description of how these codes are generated. If you are a beginner or a novice to Barcode, it helps you to understand the Barcode algorithms I've used. I've developed it from scratch. Now with these algorithms, you can create your own barcode and use it in diffrent purposes. What is barcode ? A barcode is a machine-readable symbol used to encode information in order to automate a business process. Examples of business processes are retail sales, shipping and tracking, inventory management, warehouse management, asset tracking, and automated data entry. CHECK THE Readme.htm FOR THE DETAIL DESCRIPTION. _____________________________________________________ Update on 12th Dec 2002-> A bug on printing Char '*' on Bar39 is fixed. _____________________________________________________ Update on 11th Oct 2002 -> Export the Barcode to Gif and transperent Gif with completely independent Export Class. _____________________________________________________

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/4/2002 9:18:52 AM:joyprakash saikia
Please Give Comments and Votes. I took 
one and half months to complete it. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 9:36:01 AM:kwickdoc
Very good code and good 
implementation
Can this be extended to 
other formats such as code 3 of 8 etc
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 9:49:32 AM:joyprakash saikia
Exactly, you can implement 3of9 etc.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 11:08:25 AM:Clint LaFever
Nice work.  While I do not want to 
advertise something I made here, if you 
are interested in somebody elses 
approach, I will be happy to show you 
the technique I used to do the same 
thing.  The code is far an actual 
active x control instead.  If 
interested, you can just email me back. 
 If you want to see at lease the 
control now, you can look up my bio to 
get my web address...dont want to type 
it here to have people thinking I am 
just advertising.  Good job though.  I 
just want to share if you are 
interested in seeing other methods 
(actually a little less complex).
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 11:10:23 AM:Clint LaFever
Man, sorry for all the typos...I got 
inturrupted while typing twice.  far 
should say FOR and lease should say 
least.  Anyhow...I am sure you 
understand what I was trying to say.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 12:47:08 PM:John Phillips
All I can say is, very nice
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 3:57:15 PM:rae the coder
nice guy
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 4:01:42 PM:Clint LaFever
Another thing if you are interested is 
to visit 
http://68.70.175.54:123/scratchpad/index
.asp to see how a web page can generate 
the bar code as well.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2002 5:09:16 PM:Jean-Claude Stritt
Very usefull. Thanks and 5 globes
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/5/2002 8:23:09 PM:
It won't print!!!!!
but any way very 
nice!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/6/2002 10:39:26 AM:unser Planet
Its really great code!!. I found It as 
most fastest way of printing the 
barCode. 
 It also has nice way of 
presentation especially the readme.htm. 
 Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/8/2002 5:24:38 AM:
Hey Guys, All of you have visited 1239 
TIMES , and only 14 Votes and 10 
Comments!!!!
What restrains you from 
giving vote and Comment to THIS GUY. He 
had really done a excellent job. Till 
Now ,in PSC, nobody had submit a 
BARCODE  generator like this. COME ON 
GUYS  !!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/8/2002 7:16:06 AM:joyprakash saikia
Thanks you, I tried to make the concept 
of barcode more clear through the HTML 
help, I really need some feedbacks from 
you.  
regards
-Author 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/8/2002 10:10:58 AM:Shantibhushan Naik
Nice work! Very well explained and 
simple to understand, even for a me who 
is *new* to barcodes...5 from me
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/9/2002 11:17:22 PM:Jing Polito
Nice work man.... though still limited 
to some types of barcode... 5 Gs from 
me..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 4:01:19 AM:Phantom Man
Nice Example Of Barcode Generation 
5*
Keep It Up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 10:58:16 AM:
It is really a Great Stuff. Really 
Product Quality work and the Export to 
GIF is superb.
-Amo
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/15/2002 11:42:01 PM:
Nice work! Works well with my 
commercial barcode scanner as well as 
with the Radio Shack one. Thanks. I was 
looking for something like this, so I 
can full around with my scanner. I give 
it a 10 out of 10.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/19/2002 7:27:26 PM:Opal Raj Ghimire
I am new to barcode, but the pic of 
your A and the A in code39.htm 
looks
different, is that normal or 
something is worng? Type 'DATA' and 
compare!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/20/2002 12:07:40 AM:joyprakash saikia
Hi Opal,
  It is Same. If you want to 
verify the String 'DATA' on Code39, 
then Type 'DATA' on the TextBox and, 
right Click on Code39 PictureBox and 
Choose 'Save as ' GIF format . Then It 
will be displayed on  IE or your GIF 
editor.Now  Take Print out on A 
printer, Scan with Bar 39 Scanner, you 
will find that the Scanner will return 
'DATA'. 
Check it out 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/21/2002 5:17:21 AM:Avaneesh Dvivedi
I am yet to download the code, but the 
idea seems to be great so I am giving 
you 5.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/26/2002 5:26:00 AM:coder86
very nice! I give you five globes!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/27/2002 2:01:56 PM:Mark WIthers Pre-Instinct® Software
Ok theirs one indication that their 
possibly could be a problem with this 
program. This is because if you look at 
a real barcode their are at each side 
2/3 lines indicating which way the 
barcode can be read from plus the same 
indication in the middle of the 
barcode. If you put these codes 
throught the optical reader they may 
not be picked up because their is no 
indication which way they are meant to 
be. Although Ive spotted this im going 
to give it a relitivley good vote 
neways I just thought Id let you know.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/27/2002 2:04:59 PM:Mark WIthers Pre-Instinct® Software
Plus I forgot to mention these 'which 
way' indication lines are some what 
larger in length. These can be 
represented as normal unicoded 
numbers/letters but just thought I'd 
add it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/28/2002 12:08:11 AM:joyprakash saikia
hi Mark (WinCrypt),
Please read one 
Comment on 10/15/2002 11:42:01 PM by 
one user. It was part of an already 
Implemented Project and I've checked 
both the Bars i.e., 39 and 128 on 
Optical Scanners. They Worked 
perfectly.  
  If you check the 
BarCode Generator throughly, you'll 
find that the length, height, width and 
size  are customizable on each Bar of 
this Program , subjected to Specific 
Hardware configuration.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/28/2002 12:10:18 AM:joyprakash saikia
Hi Mark,
Thank you For the Suggestion 
as a unicode representation.
-Joy
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/14/2002 11:00:03 PM:
I am new to this Barcode programming. 
Thanks to you, now that I can learn to 
code. Nice work. Thanks again.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2002 12:27:58 AM:AndrewM
great code! One question though:
are 
you limited on how long the barcode can 
be? (ie could I encode a 38-character 
guid?)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/21/2002 5:57:48 AM:Bhagyesh Trivedi
gr8 job thanks is there any royalty for 
using the code?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/22/2002 5:26:08 PM:
Great code. Having converted it to 
print directly to the printer it worked 
great with my scanteam 2380 scanner. 
But there is a small bug you define the 
bc(65) twice as both the letter A and 
*. Thus it is impossible to create an 
A! Thanks Steve
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/7/2002 12:41:15 AM:joyprakash saikia
ANDEWM:
 The Barcode Generator doesn't 
have limitation upto length of bar, 
I've set the length of textbox named 
'Text1' to 21 Character only for 
illustration purpose. So , you can set 
the 'MaxLength' of 'Text1' to 38 for 
your requirement.
-Cheers
Author 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/7/2002 1:07:19 AM:joyprakash saikia
Hi anonymous,
  Thank u for the bug 
reporting. This bug is valid for code 
39 only and I've fixed and uploaded it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/12/2002 7:55:46 PM:Ahmed Adel
Great Work .. !!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/31/2002 4:32:44 AM:
I didn't check your code. Just now i 
have downloaded your code. Thanks for 
you, because u have metioned as this 
will help to know about barcode 
generation methods which i would like 
to know. I am giving you 5* because of 
the way which u have presented over 
here.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/6/2003 6:19:25 PM:
holly s......This is a first class code 
i have ever see. Greate work and keep a 
good portion of smile:-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/21/2003 3:20:06 PM:
Very Good Work Man
Please keep on, Cool
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/10/2003 1:54:19 PM:
Hey guy thanks very much. Great 
work.
One question : I haven't spent 
too much time on this yet but when I 
change the lRotation parameter on a 
Code 128 barcode, it fails to draw on 
the device Picture1 at all ? Any help 
there ?
Again, great work dude. 
Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/10/2003 2:58:24 PM:
Also, how can I print the barcode to a 
printer ? If I change the device 
context to the printer's hDc, I just 
get a blank page. Any help there ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/13/2003 12:15:56 AM:
Nice work!
Ill give you 5* for this 
code.
Could this be possible to print 
the barcode in a dot-matrix 
printer?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2003 10:18:46 AM:Don Kiser
nice. But, how do you make it 
resizable? I'm still dealing with this, 
it can be done.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2003 5:41:10 AM:[[.DarkSouL.]]
Just Excelent! 5 globes!
PD: 
Congratulations for winning the Contest!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/20/2003 5:40:11 AM:Muhammad Kashif
veru nice work
How can i make 3 of 9 
barcode from this software
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/20/2003 11:44:04 AM:Vlad Vissoultchev
nice try! may i suggest using a vector 
based image file format. producing a 
wmf will have certain advantages over a 
bitmap in a gif -- it can scale 
painlessly and very precisely.
the 
most popular codes are the 'commercial' 
ones - UPC-A/UPC-E and EAN-8/EAN-13. 
you've implemented 'industrial' codes 
which are good for feights and partno's 
etc but are not good for products in a 
shop.
the commercial codes are the 
ones with 'indication lines' (as 
commented earlier) but almost every 
type of barcode is readable in BOTH 
directions -- so ignore the previous 
warning comments.
also note that 
commercial codes are somewhat more 
complicated to implement -- hope you 
update this code with UPC/EAN codes 
some time.
HTH,
</wqw>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/21/2003 2:42:25 PM:
Great code.  Really nice.  A few people 
made comments about printing it, what 
is the best way to go about printing 
the label or better yet a sheet of 
labels?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/24/2003 9:39:24 PM:DenVoronov
Error:
Line 17: Cannot load control 
tabPreview; license not found.
???
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/24/2003 9:46:43 PM:DenVoronov
Sorry!!!
Wrong posting!
Your code is 
very nice!
Sorry again!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/26/2003 5:06:29 PM:Dan Dierikx
Excellent program!
Upon analysing the 
Bar/Space sequences I noticed the 
startcharacter is 131131.
This doesn't 
match any B/S sequence of the 128 
barcode specification. The Data 
sequence is correct. My reference for 
the Spec. 
is
http://www.barcodemill.com/
Thank 
you,      Dan
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/3/2003 6:18:46 AM:
This code seems brilliant but I can't 
seem to get this code to work. I tried 
'DATA' and it prints out a different 
barcode to the one shown in your help 
file and my scanner will not read it. 
The lines seem to be to thick. Am I 
doing something wrong (I must be as 
everyone else seems to get it working 
OK!), I am using WinXP and VB 6
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/3/2003 7:32:28 AM:
its me again, it seems the code39 is 
working fine but the code128 is 
wsomehow wrong. I put DATA into 
www.barcodemill.com to get correct code 
and yours is different - it is the 
start block that seems different - has 
the format changed or something??
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/7/2003 10:28:09 PM:Nigel Stratton
To print out 
Picture2
Picture2.Picture = 
Picture2.Image
Printer.PaintPicture 
Picture2.Picture, 
0,0
Printer.EndDoc
Will print the 
image. Like the code, even includes 
lots of comments!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/8/2003 12:26:03 AM:joyprakash saikia
Hi Dan Dierikx,
   Thanx for your 
verification. I've visited  
http://www.barcodemill.com/ to 
reproduce the difference between my 
Code and their Code based on your info. 
  The basic difference between the 
codes is 
1)          My code 
generates CODE128B 
and  barcodemill  
generates CODE128.
2) Code 128 and 
code 128B  has little differences 
between them .
  So the outputs were 
little different 
- Author
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/14/2003 10:46:16 PM:
Dear Joy
Your code generates super 
barcodes to the screen.  How can I 
print them to a label?
I tried a 
sample of something from messages above 
and it gave me an error code.
Thanks 
for your time
Clay
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/3/2003 2:36:47 AM:
I did print the barcode out and test it 
with the barcode scanner. I print it 
using the bubble jet printer. However, 
i found out the Code 39 can be scan by 
the barcode scanner but the code 128 
cannot be scanned. Maybe need to use 
other kind of printer such as laser 
printer to print the code out, just 
then, the code 128 can be detected by 
the barcode scanner. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/8/2003 1:47:49 AM:
a beautiful piece of code- thanks a lot 
for the same: am new to vb therefore 
have a query- can't v send the barcode 
thus displayed directly to the printer 
from inside the code itself
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/9/2003 7:09:38 AM:Sawan Gupta
Is their any VB.NET Version of this 
Barcode.
Please Reply me at 
sawan@sawansoft.cjb.net
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/19/2003 11:18:32 AM:
Great code. You really deserve a 5 
globe. Well done and keep it up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/20/2003 3:10:12 PM:
Well Done. 5 Globes
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/27/2003 6:15:03 PM:
Very usefull and great code. Thanks !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/13/2003 10:49:51 PM:
 I have a project need to print barcode 
on the webpage use ASP.net, You code 
are a greet help!!! thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/14/2003 8:32:28 AM:
Nice work 5* 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/14/2003 8:47:50 AM:
Hi! nice piece of work. I give 5 
globes. I just wanted to know how to 
print the barcode
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/4/2003 4:41:48 AM:
Great code. You really deserve a 5 
globe. Well done and keep it up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/6/2003 3:22:53 AM:
This is 128B, does anyone know how to 
make it output in 128C? Or how barcode 
mill does it, can someone email me...I 
need code for this EXTREMLY BAD.... 
vdubskey@yahoo.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/9/2003 5:39:36 PM:Victor
The Physical width of a printed barcode 
using this code is 4", My wasp barcode 
scanner can only read a 3" wide 
barcode, I tried barcode my name with 3 
of 9, 13 characters total.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.