UCC 128 Barcode generation

Kladkul

Member
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?
 

Kladkul

Member
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?
 

LarryD

Active Member
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:
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.

There are a number of sites on the web explaining the how-to's and format for PCL:

e.g.
http://pcl.to/reference/
http://www.nefec.org/UPM/ccPCLfrm.htm
 
Top