-
Bar Code Reader Handling
Can anybody please suggest how to read the data from Bar code Reader into
the database.
Ajendra
-
Re: Bar Code Reader Handling
> Can anybody please suggest how to read the data
> from bar code reader into the database.
Ajendra: Bar code readers usually plug into the keyboard port (in which case
you read their data as you would any keyboard input) or a serial port (in
which case you read their data as you would any serial input, such as that
of a modem). I'd suggest that you go to http://www.devx.com and do a search
on "barcode" in the Visual Basic library to see if this question has been
answered here before.
---
Phil Weber
-
Re: Bar Code Reader Handling
Hi,
This depends on how the reader is connected to the PC. If the reader uses a
keyboard wedge (a device that inserts inline with the keyboard connector),
then data are inserted into any windows that has focus, such as a TextBox.
You would then take the data from the textbox and copy it to the database
using standard methods.
If the reader uses a serial port, then you do not need a TextBox or other
window to accept data. Instead, you would have a small amount of code that
takes the serial data (perhaps using MSComm) and transfers receive data to
the database. I have an example of this option in my book. See below for
information. I prefer this technique because it reduces the likelihood that
the user can do anything to mess it up.
--
Richard Grier (Microsoft Visual Basic MVP)
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO 80228
303-986-2179 (voice)
303-986-3143 (fax)
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition ISBN 1-890422-25-8 (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order. For faster service contact the publisher at
http://www.mabry.com/vbpgser.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|