C# and Bar Codes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Has anyone had experience with using bar codes with C#. I have a client who
wants to read a bar code with a patient's number on it and then look up the
patient in a database. I know they will need a scanner and decoder but what
will I need from a C# programmers perspective to read in the results of the
scan?
 
Most scanners (Symbol, HHP, etc...) provide an SDK that allows you to
configure and read scan results.

If you use a keyboard wedge type USB scanner, then the data will appear as
if it were typed in via a keyboard.

Yosh
 
Thanks. Do you recommend a brand of scanner?
--
Robert Hill



Yosh said:
Most scanners (Symbol, HHP, etc...) provide an SDK that allows you to
configure and read scan results.

If you use a keyboard wedge type USB scanner, then the data will appear as
if it were typed in via a keyboard.

Yosh
 
It really depends on the application. For example, we are using Symbol
Wireless 802.11 scanners (running Windows Pocket PC) because we need the
ability to move freely in the warehouse.

Some clients use a tethered scanner (hooked to a pc) because the are sitting
or standing at a register.

Symbol is a well known brand.

Yosh

Robert said:
Thanks. Do you recommend a brand of scanner?
 
Robert,
Reading from a barcode is fairly straight forward.
1st) you need an input device. Any device capable of reading the particular
barcode you're looking for. If you're creating the barcodes as well, then
this should be an easy matchup. Otherwise, you'll need to find out what
type of barcode they are using. My first barcode project, I grabbed that
old Cue-Cat from the closet, made a few mods on the PCB and presto, instant
scanner.

2) Reading the code. That's pretty simple. Place your cursor in a text box
and swipe away.

3) Printing. If you're app is doing the printing, then you'll need a
barcode font. Google for a "3 of 9 Barcode" font. That should get you
started.

Here's an article on CodeProject that talks about EAN-13 barcodes. May be
useful:
http://www.codeproject.com/cs/miscctrl/EAN13_Code_Contrtol.asp

Dave
 
Hi,

well the scanner we use is hooked between the PC and the keyboard, this
makes handling easy since the data from the barcode comes with a
keydown-event ;-)

If you need to print the barcode, too, I would provide you a class
collection capable of the following barcodes

128
93
39

I had no time to implement more but they will follow...

Regards,

Martin
 
hi
i want to kown how read data from barcode machine from com ports
and display its data in sample window as image
thanks
 
not done it in C# but in vbsux we use barcodes. . .

the barcode reader is just another input device like the keyboard.
you press the button on the reader and it sends keys to the app just like
hitting a key on the keyboard. the end of the barcode is a new line.

The barcode is just a font that needs to be installed.
just draw the string that was 'typed' in by the reader in the barcode font
to a canvas.

make sense???
 
It is possible to read barcode using C#.

businessrefinery.com/products/barcode_reader_net/net_barcode_reader.html

BizCode Barcode Reader for .NET is a high-quality barcode recognition component DLL for barcode scanning & reading in Microsoft .NET development environments, such as Visual Studio 2005, 2008 and 2010. Written in Visual C# pure code, this barcode control supports barcode reading in Visual C#, VB.NET (Visual Basic.NET), ASP.NET with high speed and excellent accuracy.
 
Back
Top