Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Barcode reader & printer interface with VB6

238 views
Skip to first unread message

adam

unread,
Jan 20, 2002, 10:22:20 PM1/20/02
to
hello,

Anybody out there knows how does vb6 receive input from barcode
reader/scanner..(beside using commercial ocx/dll)...?

Also, how to print out the barcode to the barcode printer...?

tq.

Rene Balvert

unread,
Jan 21, 2002, 6:01:58 AM1/21/02
to
"adam" <ad...@cmg.com.my> wrote in message
news:3c4b89bf$1...@news.tm.net.my...

> hello,
>
> Anybody out there knows how does vb6 receive input from barcode
> reader/scanner..(beside using commercial ocx/dll)...?

Connect the barcode reader to the COM port, and read the COM port, or use a
keyboard wedge.

> Also, how to print out the barcode to the barcode printer...?

Buy a printer with a Windows driver, and you can print from you app.

Rene

Jeppe K. Moller

unread,
Jan 21, 2002, 12:49:15 PM1/21/02
to
Do you know of any existing VB COM Port reader components? Some where the
source code is availeble?

TIA,
Jeppe


"Rene Balvert" <re...@balvert.demon.nl> wrote in message
news:u4ntbm9...@corp.supernews.com...

Dick Grier

unread,
Jan 21, 2002, 1:36:55 PM1/21/02
to
Hi,

See my book for example code. If you don't have MSComm32.ocx (comes with VB
Pro and Enterprise), you can downlaod XMCommCRC.ocx from my homepage.

--
Richard Grier (Microsoft Visual Basic MVP)
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO 80228
303-986-2179 (voice)
303-986-3143 (fax)
Leave voice mail or fax that I can receive as email at 303-593-9315
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition ISBN 1-890422-25-8 (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order. For faster service contact the publisher at
http://www.mabry.com.


Dick Grier

unread,
Jan 21, 2002, 1:35:47 PM1/21/02
to
Hi,

No need for a specialized OCX. MSComm (the Microsoft Communications
control) can use used with all serial interface barcode readers. I have
examples of this in my book (see below).

If the barcode reader uses a keyboard "wedge" you don't need to use any
control at all. In that case, barcodes are inserted between the PC keyboard
and the PC and are interpreted just as though the data had been entered on
the keyboard.

You can get information on printing barcodes from www.mabry.com and
www.taltech.com.

Dave Berendt

unread,
Mar 1, 2002, 7:21:50 AM3/1/02
to
Test Reply.....

"adam" <ad...@cmg.com.my> wrote in message
news:3c4b89bf$1...@news.tm.net.my...

Dave Berendt

unread,
Mar 1, 2002, 7:25:23 AM3/1/02
to
What kind of barcode printer is it?

"adam" <ad...@cmg.com.my> wrote in message
news:3c4b89bf$1...@news.tm.net.my...

Thomas Lutz

unread,
Mar 4, 2002, 6:33:30 PM3/4/02
to
Most bar code readers are available with one of two output options.
The first option is called "Keyboard Wedge" output where you unplug
your keyboard, plug the bar code reader into the keyboard port on your
PC and then plug your keyboard into the bar code reader. This
arrangement makes the bar code reader appear as it it were simply a
second keyboard. Your original keyboard continues to work as normal
however when you read a bar code, the data encoded in the bar code
appears to any application running on your PC as if it were typed in.
The keyboard wedge interface is extremely simple however it has a few
drawbacks. If you swipe a bar code, the cursor has to be in the
correct input field in the correct application otherwise you end up
reading bar code data into whatever application has the focus. This
can cause all sorts of potential problems as you can imagine. The
keyboard output also is limited in that you cannot modify the data in
any way before sending it into the program that is to receive the
data. For example, if you needed to parse a bar code message up into
pieces or remove some of a bar code message or add in a date or time
stamp you would not be able to with a normal keyboard wedge reader.

The other possible output option is to get a bar code reader with an
RS232 or "Serial" interface. With these types of bar code readers, you
connect the reader to an available serial port on the back of your PC.
You would then need a program called a "Software Wedge" to take the
data from the bar code reader and feed it to the application where you
want the data to go. The disadvantage to this approach is that it is a
little more complex however you gain much more control over how and
where your data ends up when you read a bar code. With a Software
Wedge, you can control exactly where the data goes in the target
application and you can also perform all sorts of modifications on the
data before it is sent to the application.

The company that I work for sells a product called WinWedge which is a
Software Wedge for Windows.

We also sell a very high quality bar code ActiveX control for printing
bar codes.

Visit: http://www.taltech.com for more information. This web site is
also an extremely good place to obtain information about bar coding in
general.

Jan Simonsen

unread,
May 15, 2002, 11:24:48 AM5/15/02
to
You can also use the MSComm control shipped with VB to read the serial port
input buffer and write to it! You don't really need any third party
software.

for example:

strInput = MSComm1.input

MSComm1.Output = strOutput

will read and write to the comm port (assuming you have set it up
correctly - see the MSComm documentation)


Jan Simonsen

"Thomas Lutz" <t...@taltech.com> wrote in message
news:3c8a015a...@news.bellatlantic.net...

0 new messages