使用扫描装置进行条形码扫描 [英] Barcode scanning with scanning device

查看:108
本文介绍了使用扫描装置进行条形码扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#.net的文本框中使用扫描设备读取条形码..
我应该编写代码,以便扫描的条形码应在文本框中读取并保存到数据库.
我将光标放在文本框中时,扫描仪正在读取数据,但是
不正确,即它无法读取完整长度,或者有时它在快速扫描时读取单个文本框中的两个条形码.

单个条形码如何正确读取并保存.是否有任何跟踪技术,或者在快速扫描时如何识别单个条形码是否已完成扫描.

任何人请帮助我.
谢谢

How can i read barcode using scanning device in a textbox in c#.net..
I should write code such that the scanned barcode should read in a textbox and save to database.
Scanner is reading the data as i place the cursor focus in the textbox but
not properly i.e it not reading full length or some times it is reading both the barcodes in single textbox while scannig fastly.

How can the single barcode read properly and save. Are there any tracking techniques or how can it identify that single barcode is completed scannig as they are scanning fastly.

Any one please help me..
Thank you

推荐答案

一个猜测-看不到扫描仪文档,只能是-扫描仪正在为您提供条形码作为键盘输入.这是正常现象,但是它还会为您提供一个字符或键码,指示读取结束"-查看文档,找出是什么意思.
At a guess - without see the scanner documentation it can only be that - the scanner is giving you the barcode as keyboard input. This is normal, but it will also give you a character or keycode which indicates "end of read" - look in the documents and find out what that is...


希望使用以下设备中的扫描设备读取条形码数据所需的任何代码: c#.net. [ ^ ]可能会为您提供帮助.
Hope any code required to read barcode data using scanning device in c#.net.[^] might help you.


您表示扫描仪正在快速读取,并且它会尽快发送数据.您将重点放在文本框上.尽管您没有提到条形码阅读器型号,但听起来像是在连续读取"模式下安装了固定安装的扫描仪.如果是这种情况,那么您将需要配置读取器以可能更改触发模式,并在读取器中定义一些终止字符,以便您的应用可以检查是否读取了完整的条形码.拥有有关条形码阅读器型号的更多详细信息会有所帮助(型号和USB/串行类型).
You indicate that scanner is reading fast, and that it is sending data as soon as you put focus on textbox. Although you do not mention the Barcode Reader model, it sounds like a fixed mount scanner setup in the "continuous read" mode. If this is the case, then you will need to config the reader to possibly change trigger mode as well as define some termination char(s) in the reader that your app can then check that the complete barcode is read. Having more details on the Barcode Reader model would help (model and USB/serial type).


这篇关于使用扫描装置进行条形码扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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