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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.