Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read and to print barcode 1

Status
Not open for further replies.

gcd

Programmer
Jan 7, 2001
2
US
I want to print data in bar code format. By example, i want print the number 1234 in bar code format.
Then I need read a barcode and the value put it in a numeric variable.
How can I do this?
 
Hi my friend
1- Printing in a BarCodes format is as simple as set the font of you text box to a BarCode font. Sure you first have to have this font installed in your computer and in you client computer before you print. there are a lot of these fonts cover very wide spectrum of the BarCodes.
Some of them free and some will cost you money, here is some online resources for more information and free download

American Microsystems LTD- barcode related hardware

Altek Instruments- Code39 specifications

ABC Fonts - Truetype barcodes fonts.

BarCode1-Barcode specifications and fonts.

Bar Code Mill - We site that generates barcodes interactively.

About the secont part of your Q, read the thread thread184-50663 it will help you for sure.

Hope this will help
Walid Magd
Engwam@Hotmail.com
 
Reading a bar code is using the var code scanner. Note to read the manual with the Bar code scanner... which normaly comes with default set as Code 39 fonts. If your bar code is made as Code39 or something else.. suitably set the scanner for that default code reading.
So the scanner will automatically read to that mode set and the input will be sent to keyboard buffer as if keyed in.

SO as per example, if the bar code of 1234 is made with Mode39 format using the bar code fonts(I am not explaining as Walid has done it already), when the cursor is waiting at the numeric variable data input place, and you scan at this stage the bar code of 1234, the keyboard will automaticaly get the value 1234.

Tips.. If you include the code of CR or TAB suitably to 1234 in the example and create the bar code, the input will make trigger the data acceptance as well and reach the next stage. In the case of item codes, for example, if you add a special character+CR to the bar code... and then in the valid event of the item code, you can check for the last character=special charater presence, and fill up the required other column values of price, default qty as one etc. and then even jump to add one more line item and place the cursor on the next item code acceptance.

These explanations are to throw some light into the barcode aspects and will help you understand more.

So reading a bar code is not at all a problem, it is very simple. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top