DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Bar Code Reader Handling

  1. #1
    Ajendra Guest

    Bar Code Reader Handling


    Can anybody please suggest how to read the data from Bar code Reader into
    the database.

    Ajendra

  2. #2
    Phil Weber Guest

    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



  3. #3
    Dick Grier Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center