I'm working on a report that needs to print out a code 128 barcode on it and haven't found much in the way of help for such a task. Can anyone point me in the right direction for finding this, some code examples perhaps?
I'm working on a report that needs to print out a code 128 barcode on it and haven't found much in the way of help for such a task. Can anyone point me in the right direction for finding this, some code examples perhaps?
Hi.
I Use Fonts "Carolina barcode" (http://www.carolinabarcode.com/) since about 6 years ago. You have to buy the fonts, but they are very useful.
Ok, thats not really what I'm looking for though. I'm asking about the code 128.
It seems like it should be as simple as assigning the font and putting to the stream but it doesn't seem to be working. Is the check digit required?
Does your printer have the code 128 barcode font installed? Is it a laser printer or... ? Generally for laser printers you need to send not only a font change, but also size etc.
For example, here is the escape sequence for switching to barcode on a Dell laser with built-in code 39 followed by a reset to normal:
There are a number of sites on the web explaining the how-to's and format for PCL:Code:set-barcode = "\033(9Y" + "\033(s1p20.0v0s0b32774T" reset-norm = "\033(3@" + "\033(s0p12H" + "\033(s3T" put stream blah unformatted set-barcode field-to-barcode reset-norm.
e.g.
http://pcl.to/reference/
http://www.nefec.org/UPM/ccPCLfrm.htm
Last edited by LarryD; 21 Sep 2009 at 02:07 PM.
Bookmarks