We help IT Professionals succeed at work.

Bar Code Programming

Mehram
Mehram asked
on
Medium Priority
369 Views
Last Modified: 2012-05-05
For attendance software I want have to do barcode coding on emp_code can some one guide me how it possible. Rgds. Iqbal
Comment
Watch Question

If you get a bar code scanner for PC, they just emit keystrokes as if you type the barcode number on the keyboard, which also makes it easy to support manual entry for barcodes that become unreadable.  You can get barcode fonts so that you can print your own, and you can put in anything you want.  Note there are several different bar code standards, so get a font you readers can read.  We use the wasp wand reader, which you can pick up at a lot of places, including CompUsa http://www.compusa.com/products/product_info.asp?product_code=50118263&pfp=BROWSE
its easy way just you need you will use time attendance machine or barcode scanner any way
if you use time attendance michine you need to get special card like the ATM cards then you will connect the machine to oyur computer on the serial port then you need need to make timer to check the serial port for incoming data by
on form_load
mscom1.portopen = true

and the time will make check every second for the data coming from the machine
by mscom1.input=  and  mscom1.output
so when you get the data you can do what you need


if use barcode scanner then you will need to use keyboard connection for this situation any barcode will display automaticly in your system so you will deal with it

i hope i help you


Author

Commented:
Sir, your provided information is really help full for me. I actually want to know how the data will be inserts into MYSQL,

As you guide me on form_load

Quote:
mscom1.portopen = true

and the time will make check every second for the data coming from the machine
by mscom1.input=  and  mscom1.output
so when you get the data you can do what you need
Unquote:

Either the coming data will be saved into any variable and then through insert command it will be transfer in MYSQL.

May be my question is stupid but I am new so need your help.
Hi,
        You buy one barcode scanner there is lots of models available in the market you can choose gun type scanner or else in your wish.

         If you are developing the software in the visual basic use the mscomm component to read the data from the scanner.

        first of all you have to set up the default setttings to your scanner by scanning the set defaults barcode available in your barcode device specified manual.

        By default the universal access free barcode is Code128 model.

        you have to generate the barcode label by using barcode generation software available wiht your barcode printer.

        Connect the barcode scanner in the serial port.

        in the form load open the serial port by setting the property

        baudrate,handshake,no of bits,stop bits = 9600,N,8,1
 
       then open the mscomm port

       mscomm1.open()

       then you have to write the code for OnComm Eent
       
      Msgbox(mscomm1.output)

 


All the best for u r attendance system

Regards,
Uday
 

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.