473,785 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Barcode with VB.NET

Mat
Does anyone know how to generate ,print and read barcode with VB.NET?
Nov 20 '05 #1
4 8946
Hi,

There are a number of ActiveX controls that can be used to generate/print
barcodes (and some Fonts that may be downloaded and used instead).
Examples: www.mabry.com, www.taltech.com, etc.

Here is my standard Barcode statement:

Reading barcodes requires hardware. There are at least three different ways
to interface purpose-build readers (ones that do not use cameras or
scanners). You can use a reader that uses a keyboard "wedge." This inserts
scanned data, just as though it had been typed at the keyboard. You set
focus to a textbox, and read the data in the KeyPress event. A similar
alternative is to use a USB scanner. These are installed as a keyboard, and
work the same way as the "wedge" type devices, but connect to the USB port,
instead of inline with the keyboard. My preference is to use barcode
readers that use a serial interface. You then can use MSComm (or
equivalent) to read the data, and there is no issue with maintaining focus
in a textbox -- thus this form of hardware seems, to me, to be more
"industrial strength." There are a variety of manufacturers of all of these
devices.

Dick
--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #2
check out http://www.renderbar.com/sample.php

they have an activex control but they also show the major 1D barcode
specifications, javascript source code, and examples of using both the
javascript to generate barcodes on web pages and integrating their control
in excel.

hth,

steve
"Mat" <re**********@f uckSpam.COM> wrote in message
news:u9******** ********@TK2MSF TNGP09.phx.gbl. ..
Does anyone know how to generate ,print and read barcode with VB.NET?

Nov 20 '05 #3
The best tools for printing bar codes from a VB.NET application are
the TAL Bar Code DLLs. For more information, visit:
http://www.taltech.com/TALtech_web/p..._barcodes.html

You can also download a sample VB.NET program that demonstrates how to
use the TAL Bar Code DLLs in VB.NET from the follwowing URL:
http://www.taltech.com/TALtech_web/s...ls/dllkbsc.htm

For reading bar codes into your applciation you have several options.

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 to either write code in your application to open
the serial port and read the data directly into your program or use a
program called a "Software Wedge" to take the data from the bar code
reader and feed it to your application. 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 custom serial I/O code or 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.

TAL Tehchnologies sells a product called WinWedge which is a Software
Wedge for Windows. 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.

On Thu, 9 Oct 2003 16:36:31 +0200, "Mat" <re**********@f uckSpam.COM>
wrote:
Does anyone know how to generate ,print and read barcode with VB.NET?


Nov 20 '05 #4
if you don't want to pay the big bucks for tal barcode stuff, check out
http://www.renderbar.com. if you don't want to buy theirs, then read their
barcode specification pages and simply translate their free javascripted
versions into .net.

cool stuff if i do say so myself. ;^)

steve

"Thomas Lutz" <to*@taltech.co m> wrote in message
news:p7******** *************** *********@4ax.c om...
The best tools for printing bar codes from a VB.NET application are
the TAL Bar Code DLLs. For more information, visit:
http://www.taltech.com/TALtech_web/p..._barcodes.html

You can also download a sample VB.NET program that demonstrates how to
use the TAL Bar Code DLLs in VB.NET from the follwowing URL:
http://www.taltech.com/TALtech_web/s...ls/dllkbsc.htm

For reading bar codes into your applciation you have several options.

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 to either write code in your application to open
the serial port and read the data directly into your program or use a
program called a "Software Wedge" to take the data from the bar code
reader and feed it to your application. 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 custom serial I/O code or 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.

TAL Tehchnologies sells a product called WinWedge which is a Software
Wedge for Windows. 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.

On Thu, 9 Oct 2003 16:36:31 +0200, "Mat" <re**********@f uckSpam.COM>
wrote:
Does anyone know how to generate ,print and read barcode with VB.NET?

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
12216
by: CHANGE username to westes | last post by:
What are the most popular, and well supported, libraries of drivers for bar code scanners that include a Visual Basic and C/C++ API? My requirements are: - Must allow an application to be written to a single interface, but support many different manufacturers' barcode scanning devices. I do not want to be tied to one manufacturers' software interfaces. - Must support use of the scanner from Visual Basic, and ideally from C/C++ and...
3
5308
by: Tom Turner | last post by:
Here's the background on my situation. The question follows --- We have 600 units of mail going from our business to various Post Offices every morning. Every unit is accompanied by a paper Verification form which is signed and dated by a postal employee and returned to our office as proof of delivery. The Verification contains a 24 character barcode which holds a non-unique 5 digit postal zip code at pos 5-9, and a unique 10- digit...
4
2124
by: | last post by:
Hi all, we have a need to barcode encode and display a record identifier (number) both in html in the browser and through fdf in adobe acrobat in realtime. Is this possible? Can anyone make any recommendations on software to do this? thanks!
1
2654
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the client then allows the user to print the report on a networked printer. To avoid having to launch an external application on the client I use a server-side print method. When I call ReportDocument.PrintToPrinter the report comes out fine but the...
6
3384
by: Samuel Shulman | last post by:
I would like to add barcode functionality to my POS program How does one attach barcode reader is it usually USB port How can the program get the data read by the device Thank you, Samuel
7
8290
by: Alper Ozgur | last post by:
Hi; How can i capture and decode the barcode that reading by an usb Barcode reader?
2
9977
by: nmrpa91290 | last post by:
Hi, I am in the design phase of building a database that will track the productivity of my warehouse. I am thinking of using a barcode scanner to assist me with this. Employees will hopefully be scanning a barcode which will communicate to the computer that the employee did some type of task. Employees will be identified by ID badges which will contain string data to identify them and hopefully log them in. Is this a good way to keep...
7
4223
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know what type of barcode the user will have, so I need to be able to accept input from any industry standard barcode reader. I need to check the barcodes scanned to see if they are in a database of acceptable barcodes and simply show ACCEPT or...
2
3335
by: sam | last post by:
can someone show how to change print font width & heigh scaling? I am writing a code for barcode printing on smaller label. I do not want change font size, because this may cause the bar code reader could work well is bar code is too small, I want to keep same font heigh but smaller font width? is it possible to do that?
7
4835
by: divyac | last post by:
I am doing an inventory control project and i want to create barcodes for the products in addition to the product details in a form.The form values should be submitted to the database to retrieve for future use.How to generate a barcode,how to load it in the database and retrieve it back.can i generate the barcode and submit the form with a single "submit" button?pls guide me in this issue.The following code is used to generate a barcode.i just...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.