Hi Friends, I have to read data from bardcode scanner,i have program program to read the from local machine by configuring some of the files,my problem is i have to read the data from clients port , please give me an idea if possible please give me program .
Thanks in advance
My program is
To execute the below program we need to configure 1)win32com.dll in C:/WINDOWS 2)javax.comm.properties in jre/lib
You need to Tell The Details. You've shown us some code, which I believe is from the Java Comm API examples, but you haven't told us if it compiles, what happens when you run it, and what you want it to do. Fill in those blanks and maybe we can be of some assistance.
Hi Joe, Thank you for your reply.The actual process is there is simple jsp page with a text box when the bardcode scanner reads the data, i have to display the data in the text box(some id:123123) using this id i have to get data of the employee.
The class which was given by me is used to Listen the barCode scanner by using SerialPortListener interface , when ever the scanner got hit serialEvent() method will read the data .But this is working in my local machine.
My Problem is i have to read the data from client machine.
So your problem isn't with the above code, it is with getting data from the barcode scanner to a page displayed in a browser? First, does the barcode scanner have a native driver? The barcode scanners I've seen convert the barcode to key strokes, so it is no different than getting data from the keyboard. You'd just have to keep the browser and text box in focus. If that is not an option, java.awt.Robot can simulate mouse and keyboard actions.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Reading data through client COM1 port from server