Hello dude,
how to generate Barcode ? any Algorithm, codes ..:) ...
i have read barcode reader .. but yet to come across the barcode genarator ...
Printable View
Hello dude,
how to generate Barcode ? any Algorithm, codes ..:) ...
i have read barcode reader .. but yet to come across the barcode genarator ...
if you can invest some time in understanding the java code, here are 2 links to open source barcode projects, The documentation can certainly help you debelop/port the barcode creation algo into C++.
http://jbarcodebean.sourceforge.net/
http://barbecue.sourceforge.net/
Thanks a lot Krishna, will check it up ..Quote:
Originally Posted by Krishnaa
and
more answers are welcome ..
thanks,
Jayender
I generate barcode like I print strings of characters, except that I use a special font. For instance, in C:
There are several fonts available.Code:hfont = CreateFont(18, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, "3 of 9 Barcode"); // specify a bar font
hfont_old = (HFONT) SelectObject(hdc, hfont); // select the font
TextOut(hdc, x, y, "*123456789*", 11); // print the barcode
SelectObject(hdc, hfont_old);
DeleteObject(hfont);
I use "3 of 9", also called "39", because it is free and simple. With 39, the string of digits should start and end with stars (see the code above). With some other fonts, some checksum are needed.
Wow.. thanks dude... thanks a lot..
i got the idea from here :
barcode generator ,
anyway thanks for ur inputs ... :)
Quote:
I could not rate u guys today ,as i have given out too many reputaions today ,this is the message
"You have given out too much Reputation in the last 24 hours, try again later.",
will do it tomorrow. :) :)
Luck to be here, I wanna choose a online barcode generator, so I have to search more info to descide which one is the best.