使用vb.net代码读取条形码 [英] Reading barcode using vb.net code

查看:119
本文介绍了使用vb.net代码读取条形码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的应用程序中添加条形码读取功能。我不知道如何让我的应用程序读取条形码。

我的意思是扫描仪应该读取条形码并匹配文章号。在数据库中,信息应该显示在屏幕上。

请问任何代码示例?



谢谢

I need to add barcode reading feature to my application. I donot know how to enable my application to read barcodes.
I mean a scanner should read the barcode and having matched the article no. in database, info should be displayed on the screen.
Any code examples please?

Thanks

推荐答案

通常,这不是问题 - 大多数条形码阅读器只是插入并充当辅助输入设备。因此,当您需要条形码时,您会扫描并输入产品编号,就好像它已在键盘上输入一样。通常可以将它们配置为使用特殊前缀,或仅在说出来时进行通话,但这需要很好地阅读手册,或者与制造商交谈。



所以您不需要任何代码 - 它可以充当键盘!
Normally, this is not a problem - most barcode readers just plug in and act as a secondary input device. So when you want the barcode, you scan and the Article Number is entered as if it had been typed at the keyboard. It is often possible to configure them to use special prefixes, or to talk only when spoken to, but that requires a good read of the manul, or a talk to the manufacturer.

So. You don't need any code - it acts as a keyboard!


有几种可以与.net一起使用的开源条形码阅读器软件。

1. http://www.barcodelib.com/net_barcode_reader/main.html [ ^ ]

2. http://sourceforge.net/projects/barbara/ [ ^ ]

3. http://code.google.com/p/zxing/source/browse/#svn/trunk/csharp [ ^ ]



To开始这些文章可以帮助你:

1. 从图像中读取条形码 - II [ ^ ]

2. http://www.codeproject.com/script/common/404.aspx?aspxerrorpath=/kb/dotnet/barcodeimaging.aspx [ ^ ]

3. 使用POS for .NET控制条形码阅读器 [ ^ ]



希望这会有所帮助。

一切顺利。
There are couple of Open source Barcode reader softwares that can be used with .net.
1. http://www.barcodelib.com/net_barcode_reader/main.html[^]
2. http://sourceforge.net/projects/barbara/[^]
3. http://code.google.com/p/zxing/source/browse/#svn/trunk/csharp[^]

To get started these articles may help you :
1. Reading Barcodes from an Image - II[^]
2. http://www.codeproject.com/script/common/404.aspx?aspxerrorpath=/kb/dotnet/barcodeimaging.aspx[^]
3. Controlling a Barcode Reader with POS for .NET[^]

Hope this helps.
All the best.


这篇关于使用vb.net代码读取条形码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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