[英]How to integrate barcode scanner into an ASP.NET Web application?
How to integrate barcode scanner into an ASP.NET Web application? 如何将条形码扫描器集成到ASP.NET Web应用程序中?
Any open source library for doing it? 这样做的任何开源库?
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 . 编辑:我没有阅读条形码的经验,你可以通过这个链接找到如何创建它们: C#条形码生成器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.
即使你可以处理window.keypress事件来挂钩前导和后同步字符。 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. 或者读者使用硬件驱动程序(?不知道这些供应商存在?),那么你需要一个ActiveX对象来包装库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.