p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro VB.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=74)
-   -   how to integrate a hand-held bar code scanner (http://p2p.wrox.com/showthread.php?t=66123)

suneet.pant February 23rd, 2008 12:49 AM

how to integrate a hand-held bar code scanner
 
I have to integrate a hand-held bar code scanner into my inventory software which was developed in C#,ASp.Net and Sql server 2005. The purpose of this scanner is just to read the barcode and save the number which is in this barcode in a table for further use. I just want to know which will be the cheap and best barcode scanner to purchase and how will i integrate this barcode scanner into my project. Please guide and help

BrianWren February 25th, 2008 01:06 PM

I don't know the answer to the first part, but with regard to how t ointegrate it, my understanding is that the bar-code reader behaves just like the input was coming from the keyboard.

urtrivedi February 26th, 2008 12:17 AM

Any barcode reader can be used.
You need to code keyboard event and trace crlf charcters in that event of any text box
(By default many barcode reader returns crlf after reading the code)
then u can use text box value to either retrived information from database or u can insert code to ur database, it is not very difficult to integrated barcode reader with your program


urt

Help yourself by helping someone.

suneet.pant March 4th, 2008 05:44 AM

thanks for the reply. But can u pls tell me what are these 'crif' characters and where do i find information related to this.

thanks once again

urtrivedi March 4th, 2008 06:06 AM

They are nothing but ascii characters, refer any ascii chart in any appendix of c/c++ book

CR; Carriage return; ascii code=13
LF; Line feed; ascii code=10
Whenever you press enter key in text box then keycode return in event is 13 (ascii code)
Visual basic has one constant defined for it "VbCrLf"
or you can directly use 13 and 10



urt

Help yourself by helping someone.


All times are GMT -4. The time now is 12:39 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.