阅读条形码 [英] Read Barcode

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

问题描述

I Guys:

我正在处理一个应用程序,以便从扫描仪中读取条形码,并且

将它们列在网页上的ListBox中。我想知道是否有人做了类似的工作。


目前我已经将扫描仪连接到我的电脑上并扫描了条形码

它读取并将其放在记事本或文本框上。

但我需要控制条形码并将其放入列表框中。


任何想法或代码都会非常感激。


谢谢

I Guys :
I am working on a Application to read barcodes from a scanner and
list them in a ListBox on a web page. I was wondering if any one has
done a similar job.

Currently I have attached the scanner to my PC and as I scan a barcode
it reads and puts it on a notepad or textbox.
But I need to have control over the barcode and put it in the listbox.

Any ideas or code will be really appreciated.

Thanks

推荐答案

条形码设备是否发送任何特殊字符首先?我不记得

了我的头脑,但我可以用信用卡扫描仪发誓

(类型设备) - 它发送像\\首先是\\ 0x10和其他东西,然后发送

它的字符串..


如果是这样,你可以捕获一个表单上的事件,当你看到

时,这些代码会出现 - 将焦点设置到文本框中。 ?


除此之外,如果它只是原始字符 - 我可能强迫用户一点点b / b $ b - 强迫窗口在顶部并强迫文本框重点关注,直到它们完成为止。添加商品???

" Mudasir Ahmed" <亩*********** @ yahoo.com>在消息中写道

news:b9 ************************** @ posting.google.c om ...
Does the barcode device send any special characters first? I don''t remember
off the top of my head, but I could''ve sworn with a credit card scanner
(type device) - it sends like \0x10 and something else first, and then sends
it''s character string..

If that''s the case, you could capture an event on the form, and when you see
those codes come across - set focus to your text box. ?

Aside from that, if it''s just raw characters - I might force the user a
little bit - by say forcing the window on top and forcing the textbox to be
focused until they are "Done" adding items???
"Mudasir Ahmed" <mu***********@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
I Guys:
我正在开发一个应用程序,用于从扫描仪读取条形码,并将它们列在网页上的ListBox中。我想知道是否有人做过类似的工作。

目前我已经将扫描仪连接到我的电脑上,当我扫描一个条形码时,它会读取并放入一个条形码。记事本或文本框。
但是我需要控制条形码并将其放在列表框中。

任何想法或代码都会非常感激。

谢谢
I Guys :
I am working on a Application to read barcodes from a scanner and
list them in a ListBox on a web page. I was wondering if any one has
done a similar job.

Currently I have attached the scanner to my PC and as I scan a barcode
it reads and puts it on a notepad or textbox.
But I need to have control over the barcode and put it in the listbox.

Any ideas or code will be really appreciated.

Thanks



嗨大家好:

我正在处理一个应用程序来读取扫描仪和列表中的条形码

他们在网页上的ListBox中。我想知道是否有人做了类似的工作。这可能吗?


目前我已将扫描仪连接到我的电脑上,当我扫描条形码时,它会读取并将其放在记事本或文本框上。

但是我需要控制条形码并把它放在列表框中。

换句话说我想在进入
$之前进行一些验证b $ b列表框。

其次,在什么情况下我可以在

网页上捕获texbox中的值?

用户不能选项卡或单击页面。他只会继续扫描

条形码在页面上的另一个。窥视窥视。


任何想法或代码都会非常感激。


谢谢


***通过开发人员指南 http://www.developersdex.com 发送***

不要只是参加USENET ......获得奖励!
Hi Guys :
I am working on a Application to read barcodes from a scanner and list
them in a ListBox on a web page. I was wondering if any one has done a
similar job. Is this possible ?

Currently I have attached the scanner to my PC and as I scan a barcode
it reads and puts it on a notepad or textbox.
But I need to have control over the barcode and put it in the listbox.
In other words I want to perform some validation before putting into the
list box.
Secondly under what event can I capture the value in the texbox on the
webpage ?
The user must not tab or click on the page. He wil just keep scanning
barcodes on after the other on the page. Peep Peep Peep.

Any ideas or code will be really appreciated.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


条形码阅读器是否使用键盘楔或串行接口?如果使用键盘楔子是
,你需要强制将表格焦点转换为可编辑的

控件,例如TextBox,然后你可以使用TextChanged事件当扫描仪输入新的扫描代码时告诉

。如果它是一个串行接口,你可以只监视来自设备的数据包数据的串口。

有几个串口组件,免费和商业。我已经使用了几个免费的b $ b,但是我正在使用来自 www.componentscience.com 现在

从扫描仪上读取条形码。


-

Floyd Burger


" Mudasir Ahmed" <亩*********** @ yahoo.com>在留言中写道

新闻:%2 **************** @ tk2msftngp13.phx.gbl ...
Is the barcode reader using a keyboard wedge or serial interface? If it''s
using a keyboard wedge, you need to force the form focus to an editable
control, such as a TextBox, then you can use the TextChanged event to tell
when the scanner enters a new scanned code. If it''s a serial interface, you
can just monitor the serial port for the packet data coming from the device.
There are several serial components, free and commercial. I''ve used several
of the free ones, but I''m using TransPort from www.componentscience.com now
to read barcodes from a scanner.

--
Floyd Burger

"Mudasir Ahmed" <mu***********@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
嗨大家好:
我正在开发一个应用程序,用于从扫描仪中读取条形码,并将它们列在网页上的ListBox中。我想知道是否有人做过类似的工作。这可能吗?

目前我已将扫描仪连接到我的电脑上,当我扫描条形码时,它会读取并将其放在记事本或文本框上。
但我需要控制条形码并将其放入列表框中。
换句话说,我想在进入
列表框之前执行一些验证。
其次,在什么情况下我可以捕获值
网页上的texbox?
用户不得在页面上标签或点击。他只会继续扫描页面上的另一个条形码。 Peep Peep Peep。

任何想法或代码都会非常感激。

非常感谢

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET .. .get奖励它!
Hi Guys :
I am working on a Application to read barcodes from a scanner and list
them in a ListBox on a web page. I was wondering if any one has done a
similar job. Is this possible ?

Currently I have attached the scanner to my PC and as I scan a barcode
it reads and puts it on a notepad or textbox.
But I need to have control over the barcode and put it in the listbox.
In other words I want to perform some validation before putting into the
list box.
Secondly under what event can I capture the value in the texbox on the
webpage ?
The user must not tab or click on the page. He wil just keep scanning
barcodes on after the other on the page. Peep Peep Peep.

Any ideas or code will be really appreciated.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



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

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