Important alert: (current site time 7/15/2013 11:45:53 PM EDT)
 

winzip icon

Code 128 B barcodes

Email
Submitted on: 9/19/2002 5:46:42 PM
By: Remus Oproiu Vasii 
Level: Beginner
User Rating: By 34 Users
Compatibility: ASP (Active Server Pages), HTML
Views: 26164
 
     Write "Code 128 B" barcodes to a web page with just a little bit of VBScript and a little HTML. Some people are charging so much for such a little thing. I wrote this so I wouldn't have to pay hundreds of dollars for it...and it was worth it. It was just a piece of cake... There are many other barcode standards out there, of course, but I leave those to someone else.
 
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.

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.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner 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
9/20/2002 11:48:13 AM

This code is too cool! Excellent Job.
***** stars for creating this script.

Printed the code and tested using a bar code scanner.Works great!

(If this comment was disrespectful, please report it.)

 
9/20/2002 11:54:53 AM

Nice Job!
I tried ranking this article and saw an randomly generated image with numbers and chars displayed on the screen. The num and chars make up the verification code. I assume this prevents automated voting. Can anyone share the code as to how it's done.

rashel73@hotmail.com
(If this comment was disrespectful, please report it.)

 
9/20/2002 1:36:46 PM

This was the only code i could find that would work a real scanner! GREAT WORK!!!
(If this comment was disrespectful, please report it.)

 
9/21/2002 4:49:43 AM

nice work!!
thanks
eozores@hotmail.com
(If this comment was disrespectful, please report it.)

 
9/22/2002 2:45:38 AMSam Moses

I have a challenge for you... postnet codes. They tend to be trickier.
(If this comment was disrespectful, please report it.)

 
10/6/2002 9:42:44 AMClint LaFever

Great job. I was able to port this to VB very VERY easily and make an ActiveX Control out of it. (instead of GIFs I used the UserControl.Line method.)

Great job once again.
(If this comment was disrespectful, please report it.)

 
11/7/2002 10:54:04 AMFrank Hill

This is relly nice.

When I print more than one barcode on a page, the first one never scans, but all the others do. I have switched the order for testing and always get the same results.
(If this comment was disrespectful, please report it.)

 
12/19/2002 3:11:28 PM

It's great!!! :) Thanks!
(If this comment was disrespectful, please report it.)

 
12/19/2002 3:12:37 PM

It's so cool! You save my life. Tnaks!!! :)
(If this comment was disrespectful, please report it.)

 
12/19/2002 3:12:44 PM

It's so cool! You save my life. Tnanks!!! :)
(If this comment was disrespectful, please report it.)

 
2/21/2003 11:10:50 AM

This is a great program, I modify the script to accept 2 parameters, BarWidth and BarHeight, to obtain a bigger barcode. you could made this change too.
(If this comment was disrespectful, please report it.)

 
2/24/2003 11:50:25 PMnfs

Nice JOb.

Cool work.
Do you want to make money with your programming skills ? Software Objects provide following services :
1)Sell your software.
2)Post
a software to be done.
3)Bid on the software projects.
4)Buy software
Thanks and have a nice day.
Software Objects
http://www.thesoftwareobjects.com

(If this comment was disrespectful, please report it.)

 
9/3/2003 4:44:07 PM

1.000.000.000.000 of thanks!. This code is very very Smart (Short, Fast, Simple and Functionally). You're a Gurù.
(If this comment was disrespectful, please report it.)

 
9/12/2003 1:33:47 AM

Nice code...
Send me 1 idea about get info from *.mdb

Thanks
(If this comment was disrespectful, please report it.)

 
10/13/2003 10:57:21 AM

Great code! Really simplified the barcode process

(If this comment was disrespectful, please report it.)

 
10/13/2003 2:53:54 PM

Converted the code to generate Code39. Anyone interested, email me
(If this comment was disrespectful, please report it.)

 
10/23/2003 1:38:06 PM

Thanks! Thanks! Thanks! You are clever!
(If this comment was disrespectful, please report it.)

 
11/10/2003 1:57:20 AM

nice code! do u have the code of 3 of 9?
(If this comment was disrespectful, please report it.)

 
11/16/2003 11:15:17 PMMark Kahn

to anyone that needs any other codes:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8383&l ngWId=4

(If this comment was disrespectful, please report it.)

 
2/6/2004 6:07:09 PM

Code works great, but if you use width of 1. If you want to make realy small barcode you cannot put width less than 1 it will not scan it. Does anybody knows how to make it work for it.
(If this comment was disrespectful, please report it.)

 
4/21/2004 1:31:04 PM

thanks a lot, i was in need to generate barcodes, i was using online barcode generating websites...but u showed me the simpler way
(If this comment was disrespectful, please report it.)

 
4/26/2004 12:01:34 AM

thank you very much
you are free god!!
(If this comment was disrespectful, please report it.)

 
6/10/2004 3:43:26 AM

It's great ... easy to use ...!
Would you mind tell me why in some case the code will be invalid e.g. 0047 and 0046 ... where 0047 is shorten and invalid but 0046 is ok! @.@...
(If this comment was disrespectful, please report it.)

 
10/6/2004 6:26:29 AM

This very nice site and i take lot of help from this site thanx Planet-source-code
(If this comment was disrespectful, please report it.)

 
8/23/2005 11:41:46 AMAlex

Very impressive.
(If this comment was disrespectful, please report it.)

 
9/30/2009 6:41:00 AMTimo Böhme

simple done!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.