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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Barcode printing using PCL

Status
Not open for further replies.

dsaro00

Programmer
Apr 18, 2005
14
US
Hi All,

We have a requirement to print barcodes in reports. Any idea how this can be achieved? Is there any special font characteristic that allows barcode to be printed?

Is it possible to adjust the height and length of barcodes?

Thanks
DSARO00
 
dsaro00,
how are the reports generated? what are they printed on?
regards,
longhair
 
The data for writing barcodes is retrieved from a database table. These barcodes will then be printed, and then pasted on customer cards.
 
dsaro00,
are you writing the code for the barcode printing or using someone elses? if writing it and using HP laserjet printers you will need the HP DIMM barcodes and more. from there you will need to code the proper escape sequences to notify the printer to print the barcode rather than the literal string.
hth
regards,
longhair
 
Not many PCL printers have resident bar-code fonts, although there are a few that do.

So you will probably have to obtain a suitable PCL format font (for the bar-code symbology you have chosen); this may be provided as either:

hardware (DIMM or equivalent)
software (downloadable PCL-encapsulated format)

Then you would be able to select the font (by ID, or via characteristics; font vendor should provide details).

You may need to add things like stop/start characters, calculate checksum character and maybe even translate characters (if the font characters do not have one-to-one correspondence with actual character codes).
 
Hi,

Do you think Lexmark T630N, HP4250 and HP9050 will have resident bar code fonts? Those are the printers we use.

Thanks
DSARO00
 
dsaro00,
don't know about lexmark, but as i said for HP's you need to get the HP DIMM called 'Barcodes and More' in order for the printer to understand the escape sequences that will generate the barcode.
another option is a software one using .pdf where the barcode is an image in the file rather than being interpreted by the printer.
hth
regards,
longhair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top