הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Saturday, October 15, 2011 3:23 PM | 1 vote
Hi,
I need to add barcode reading feature to my application. I donot know how to enable my application to read barcodes.
I mean a scanner should read the barcode and having matched the article no. in database, info should be displayed on the screen.
Any code examples please?
Thanks
All replies (3)
Saturday, October 15, 2011 5:25 PM ✅Answered
Any code examples please?
It's a little bit older of a code example, but check out the following article on how to read barcodes using the .NET Compact Framework using a mobile device:
Bar Code Scanner Example:
http://msdn.microsoft.com/en-us/library/aa446489.aspx#barcode_scanners_netcf_topic5
Here is a similar post offering advice as well:
Read data from Bar Code Scanner in .net (C#) windows application!
Lastly, the software made for a barcode scanner (regardless of device), may expose an API written in .NET that you would then consume to get the data that is read. This is one of the easiest ways to tap into data read by a scanner. Just check with the scanner software to see if they have a .NET API (i.e. .dll). If yes, they will also typically provide example applications to help clients get up and running.
Saturday, October 15, 2011 3:51 PM | 1 vote
My only experience with barcodes involved a hand held scanner that connected to the keyboard port and allowed the keyboard to connect as a pass-thru. Scanning a barcode was equivalent to typing the numbers. All it needed was a control to be focused that accepted keystrokes. I don't know but I'd guess that USB scanners do the same thing - act like a keyboard.
Are you looking for code that samples the database and returns the info ?
Do you already have the scanner ? If so the manufacturer should know how to interface with it.
Friday, January 6, 2012 2:58 PM
there is a barcode reader guide for .NET with vb.net code included in it. hope it is helpful.