Important alert: (current site time 7/15/2013 11:40:23 PM EDT)
 

winzip icon

Pure ASP Barcode Generator Version 2

Email
Submitted on: 5/1/2004 1:05:00 PM
By: Mark Kahn  
Level: Advanced
User Rating: By 14 Users
Compatibility: ASP (Active Server Pages), HTML
Views: 26177
(About the author)
 
     Generates an barcode in ASP without any com+ components or groups of images. Currently supports the following code types: UPC-A, code39, code128b, ean-13, postnet, planet. Also now supports text in the barcode image (which is why I'm reposting this as V2. I've had about 100 requests for font support.). Currently has 10px & 12px Courier New fonts, but new fonts are easy to import with the provided script.

 
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.


Other 19 submission(s) by this author

 


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 Advanced 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

8/13/2004 5:35:58 AM

Excellent work.. One problem that was probably overlooked is that the UPC-A code (Code used for ISBN #s) is written in a different format from the UPC-13 Code. Because the format is different, UPC-A barcodes do not work properly and lose a digit.

Other than that, barcodes work great! Excellent work.


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

 
7/7/2006 4:32:11 PMHSconsultants

HI,
I get this error when i run the barcode.asp.
Response object, ASP 0106 (0x80020005)
An unhandled data type was encountered.

Do you know why?


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

 
11/9/2006 2:34:06 PMBob

Hi,
It is really an excellent piece of code! I just tested it and it worked perfectly.

However, I am looking for the 128A code type. I know it is very close to the 128B, that you already have here.

Do you have a version with the 128A? If not, I will try to do it. I know ASP, but i dont know much about the code types. I know 128 supports the standard ASCII control codes in addition to 128B. Any help?
(If this comment was disrespectful, please report it.)

 
12/1/2006 1:56:48 PMSam

Excellent piece of work!

I have trouble, however, displaying the barcode sometimes and that could only be resolved by setting the barcode width to rediculously high value like 20 pixel wide. But then, the font is destroyed.

By the way, I've written an extra algorithm to handle code2of5. Are you interested?
(If this comment was disrespectful, please report it.)

 
2/20/2007 5:14:02 PMAnalia

Hello, I need handle code2of5. Be capable of obtain?
Thank
(If this comment was disrespectful, please report it.)

 
6/12/2007 7:50:01 AMMarco

The bar code generation script works great, I was really impressed. Unfortunately, the font creator doesn't work quite as well. I tried it with a number of different bmp files, and eventually tried it with couriernew12.bmp that comes with the program, and even it didn't generate the same output. It also doesn't append the starting size and width to the pictures. Thanks for the great work, I really appreciate it.
(If this comment was disrespectful, please report it.)

 
2/18/2009 1:26:04 AMbasu

HI,
I get this error when i run the barcode.asp.
Response object, ASP 0106 (0x80020005)
An unhandled data type was encountered.

please inform me what is the reason

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

 
3/12/2011 12:41:58 AMAbe

This is an excellent and very useful piece of code. Do you have a version that allows rotation of the barcode image?
(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.