Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to read the barcode of a product with the barcode scanner and then save automatically in a database, the code, and the date - time of the reading, without the intervention of the people or a textbox.

In a warehouse, I have 1000 products with their corresponding barcodes, I wan with a wireless barcode scanner, scanning all products, one by one, and while I read it I want to save the data, send the data to the database.

I don't know if I explain myself.

Regards
Posted
Updated 16-Mar-17 22:46pm
Comments
Member 12736272 17-Mar-17 4:52am    
I want to read the barcode of a product with the barcode scanner and then save automatically in a database, the code, and the date - time of the reading, without the intervention of the people or a textbox.

Can any of you help me.please

We can't tell you how to do that.
Most suitable barcode scanners will be able to do that - if they are wireless they generally send the data back to a base station which is attached to a PC.
You need to talk to the manufacturers of the specific hardware you are going to use, and find out what happens to the data from that point. They should have technical support who will be able to help, or point you at the relevant documentation.

Non-wireless ones pretend to be an extra keyboard, but can be configured to provide a Start and End sequence so you can recognise barcode data without it going into a text box. It's likely that your chosen wireless one operates in a similar manner - but not guaranteed. The manufacturer will be the only person who can tell you.
 
Share this answer
 
Let me guess how your solution works:
1. Use the scanner to read barcodes.
2. Display the barcode results to the text box of an application Window.
3. Operators check and confirm the barcode results, and then insert data to the database by clicking mouse or keyboard.

How to implement your requirements? Skipping step 2 and 3 with the code of inserting barcode results to database.

If you know how to display barcode results in a textbox, it should not be a problem for you to insert barcode results to database.
 
Share this answer
 
Comments
Aravindba 29-Jul-15 0:22am    
5+,yes if u know how to display barcode result in textbox,then it will easily to store in database,i mean in texbox changed event u can insert result into database,i know about wired barcode scanner,that one connected to pc and where the mouse cursor focusing in that place display the result.if it mouse blinking in notepad ,in that notepad result will display,so make ur wireless scanner display result in texbox in ,in textbox changed event u can insert data into database and clear the text in textbox.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900