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

后端 未结 2 422
渐次进展
渐次进展 2020-12-19 22:59
  • How to integrate barcode scanner into an ASP.NET Web application?

  • Any open source library for doing it?

相关标签:
2条回答
  • 2020-12-19 23:14

    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.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题