使用c#在我的应用程序中集成条形码阅读器 [英] integrate barcode reader in my application using c#

查看:74
本文介绍了使用c#在我的应用程序中集成条形码阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计!!你能告诉我如何将条形码扫描器与c#windowform应用程序集成。实际上我想制作一个应用程序,我将通过myu设备扫描条形码,它将从数据库中获取记录并在我的Windows窗体中显示。我有一个代码来生成条形码,但不知道如何扫描它并获取记录。如果您有代码,请将邮件发送到[删除] @ gmail.com。

先谢谢



电子邮件已删除 - OriginalGriff [/ edit]

解决方案

条形码扫描器主要用作键盘输入,除非另有配置。

所以基本上,你所要做的就是为扫描器添加一个文本框以输入,并搜索你的数据库当你有一个有效的代码时。



或者,你可以配置大多数扫描仪提供扫描序列的开始和结束,这意味着你可以在没有文本框的情况下自己捕获数据。但是你必须和制造商讨论这个问题因机器不同而不同。



搜索数据库是基本的东西,就像你输入的一样手动数据 - 你必须已经完成了几百次!


Hey guyss!! Can you Please describe me about how to integrate barcode scanner with c# windowform application. Actually I want to make an application in which i will scan the barcode through myu device and it will fetch records from the database and show it in my windows forms. I got a code to generate the barcode but don't know how to scan it and fetch the records. If you have the code then mail me on [DELETED]@gmail.com.
Thanks In advance

[edit]Email removed - OriginalGriff[/edit]

解决方案

Barcode scanners mostly act as keyboard inputs, unless otherwise configured.
So basically, all you have to do is add a textbox for the scanner to "type" into, and search your DB when you have a valid code in there.

Alternatively, you can configure most scanners to provide a "start" and "end" of scan sequence, which means you can trap the data yourself without the textbox. But you'll have to talk to the manufacturers about that as it varies from machine to machine.

Searching the DB is basic stuff, exactly as if you had typed in the data in manually - and you must have done that a couple hundred times already!


这篇关于使用c#在我的应用程序中集成条形码阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆