PNG Samples

This sample demonstrates the use of BarCode/ASP to dynamically generate barcode images in JPEG format. To do this, no programming is required and your HTML page remains in plain HTML.

To view the samples below, your browser must support PNG (e.g., Netscape 4.0 or Internet Explorer 4.02)




Here's the HTML content for the above results:

<img src="barcode.asp?image=1&type=6&data=123458">
<img src="barcode.asp?image=1&type=9&data=1234567&barwidth=2">
<img src="barcode.asp?image=1&type=3&data=12345678901&rotate=3">
<img src="barcode.asp?image=1&type=22&data=95020-342740&height=15">

So you just need to use the barcode.asp file the same way you would an image file. You pass in parameters the same way you would a CGI program.

This example assumes that barcode.asp is hosted in the same directory as the HTML file using it; otherwise you would need to specify its full URL, which could point to a different web server on a different machine where barcode.asp is hosted (and BarCode/ASP installed).