Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is sample code to generate bar codes for a string input by client into web form's text box and display it on the same web page and also to save it into SQL Server 2005 database and read the same back from database or from printed bar code through a bar code reader using ASP.NET + VB.NET?

satish v itagi
Posted
Updated 11-Feb-10 6:02am
v2

1 solution

First up, what type of bar code are you talking about, a simple 3of9 or the more complex 2D bar codes also how does your bar code reader connect to the computer via the PS2 keyboard port or USB, does it have specific drivers and will those drivers interact with a browser.

When you store a bar code you do not store the image that you see but the alphanumeric characters that make up the bar code, so if you have a bar code that corresponds to ABC1234 then that is what is stored and retrieved from the database.
As for displaying the bar code if you are using the 3of9 bar code then you could use a free 3of9 bar code font[^] installed on the web server and the Graphics DrawString function to create an image of the text, which you can then display on a web page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900