读条码扫描器数据.NET(C#)Windows应用程序! [英] Read data from Bar Code Scanner in .net (C#) windows application!

查看:127
本文介绍了读条码扫描器数据.NET(C#)Windows应用程序!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何读取.NET Windows应用程序从条形码扫描仪的数据吗?

How to read data from Bar Code Scanner in .net windows application?

有些人能给出的步骤顺序应遵循?我是很新的这一点。

Can some one give the sequence of steps to be followed? I am very new to that.

推荐答案

看扫描仪插孔。

如果它看起来像这样:

,那么它是一个键盘楔扫描仪。它就像一个键盘:只需类型的条形码到编辑字段

, then it's a keyboard wedge scanner. It acts like a keyboard: just types your barcode into an edit field.

如果它看起来像这样:

,这是一个串口扫描仪。

您需要创建一个实例 System.IO.Ports.SerialPort ,并用它来与扫描仪通信

You need to create an instance of System.IO.Ports.SerialPort and use it to communicate with the scanner.

如果它看起来像这样:

,这是一个 USB 扫描仪。但从程序员的角度来看,它可以是一个键盘楔串口扫描仪。你需要看一下说明书,发现这是它和使用上述方法之一。

, it's a USB scanner. From programmer's point of view, it can be either a keyboard wedge or a serial port scanner. You need to look at the manual, find out which is it and use one of the approaches above.

P.S。如果你在这里发表您扫描仪的模型,实际上它会比较容易。

P.S. It will be easier if you post your scanner's model here, really.

这篇关于读条码扫描器数据.NET(C#)Windows应用程序!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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