Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone,
I want to write a program to read a barcode from device, or say m going to write a program for a shop who use barcode reader, how to start with, plz give me idea....
Posted
Comments
[no name] 5-Aug-12 21:55pm    
You start by deciding what barcode reader to use, reading the documentation, opening a port and reading the data.

These are two different tasks, you can either write code to use a camera to take a photo and work out the values, or buy a barcode reader, and then use whatever interface it offers to get the values. You need to decide which, in the first instance, you have to look for libraries to do this, in the second, you need to read the manual that comes with your barcode reader.
 
Share this answer
 
Comments
Gopal Rakhal 5-Aug-12 22:00pm    
thanks
Normal barcode readers just act as a keyboard. This means, that you need to provide a input field in your application and as soon as something is scanned, the value is entered into the input field that has the focus. See this article for some additional information:
Using a bar code scanner in .NET[^]
 
Share this answer
 
Comments
Gopal Rakhal 5-Aug-12 22:00pm    
thanks, i was having no idea, i got an idea ...
not necessary to write any code it scans automatically write in to text box. if you are fail to scan just check barcode have been generated with proper encoding or not?
 
Share this answer
 
v2
Comments
Gopal Rakhal 6-Aug-12 21:30pm    
do i need to use any dll comes with that barcode reader...
We searched a lot and ended up using leadtools barcode module, which helped us to read different barcode types. They support many programming languages (including both .NET and C/C++).
As a start, you can refer to the following page:
Programming Barcode
 
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