How to integrate barcode scanner into an ASP.NET Web application?

百般思念 提交于 2019-11-29 12:02:04

You (probably) will not have a barcode scanner into your server, but on user computers.

A barcode scanner typically reads a barcode, understand it, and to make that read data to be understood by your computer as entered by keyboard. So you'll just need to send that data to server to be processed.

EDIT: I don't have experience on reading barcodes, by you can look into this link to find how to create them: C# Barcode Generator WebService. Maybe you should buy one component for both tasks.

If you need the barcode written into a textbox, you'll not need extra work to do. Barcode scanners simulate keypress event. Even you can handle window.keypress event to hook the preamble and postamble characters. That way the client do not need to focus on the specific textbox.

Or else the reader uses a hardware driver (? don't know such vendors exists ?) , then you'll need an ActiveX object to wrap the library.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!