如何使用.Net通过扫描仪从打印的PDF读取条形码 [英] How to read barcode by scanner from printed PDF using .Net

查看:79
本文介绍了如何使用.Net通过扫描仪从打印的PDF读取条形码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,



新年快乐!



我创建了一个Web应用程序,其中



1)用户输入一些常规数据(名称,他要求退货的物品等)。



2)提交的表格创建一个独特的字符串并创建条形码图像



3)条形码图像打印在PDF表格上



4)现在,如果我扫描打印PDF上的条形码,它应该显示仓库中存在此声明的位置。



在上面的步骤中,我已经成功到第3步。



我从来没有和任何人合作过条形码扫描仪较早,所以我想得到一些想法/建议/教程,可以帮助实际真正的大步4.



请不要告诉我谷歌。我去过那里,对.Net没什么帮助。大多数链接都在JAVA中,我不是在寻找。



我想知道如何开始将扫描仪连接到我的Web应用程序?

我也想知道如何编写一个实际扫描打印PDF条形码的程序,并显示数据库中的结果。



非常感谢任何形式的帮助!



谢谢

Hello Experts,

Happy New year!

I have created a web application where

1) the user enters some regular data(name, the Item he is claiming for return etc.).

2) The submitted form creates a unique string and creates a Barcode image

3) That barcode Image is printed on the PDF form

4) Now if I scan the barcode that is on printed PDF, it should display the place where this claim exists in warehouse.

In the above steps, I have succeeded until Step 3.

I have never worked with any Barcode scanner earlier so I would like get some ideas /suggestion/ tutorials that can help for actual real big step 4.

Please do not tell me to google. I have been there and nothing helps much with .Net. Most of the links are in JAVA which I am not looking for.

I want to know how to start tying the scanner to my web application?
I also want to know how to write a program that actually scans the barcode from printed PDF and display the results from the Database.

Any sort of help is much appreciated!

Thanks

推荐答案

如果扫描仪在客户端机器,VB.NET / C#/ ASP.NET代码是不可能的。 ASP.NET代码完全在服务器端运行,无法访问客户端计算机,更不用说连接到它们的硬件了。您唯一的解决方案是Javascript解决方案。
If the "scanner" is on a client machine, VB.NET/C#/ASP.NET code is out of the question. ASP.NET code runs entirely server-side and does not have access to the client machines, let alone the hardware attached to them. Your only solution is a Javascript solution.


如果您使用带USB连接的条形码扫描仪,它将具有键盘仿真功能。这意味着它会在PC上显示为扫描条形码时发送击键的键盘。您只需要一个输入控件,并确保它在扫描前具有输入焦点。而已。根本不需要特殊软件。
If you're using a barcode scanner with USB connection, it will have keyboard emulation. Meaning it will appear to the PC as a keyboard that's sending keystrokes when you scan a barcode. You just need an input control and make sure it has input focus before scanning. That's it. No special software required at all.


这篇关于如何使用.Net通过扫描仪从打印的PDF读取条形码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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