Link to home
Start Free TrialLog in
Avatar of Joe Kaminski
Joe KaminskiFlag for United States of America

asked on

Printing PCL5e Barcodes

I am trying to print barcodes on a Canon iR3245.

I believe the barcodes are part of the printer kit installed on this printer.

The barcode would be a six digit number (ex. 123456).

Could I get the exact PCL commands?

Thank you.
Avatar of DansDadUK
DansDadUK
Flag of United Kingdom of Great Britain and Northern Ireland image

Printing barcodes on most laser printers is not straightforward (see thread https://www.experts-exchange.com/questions/26235623/Why-do-my-EAN13-barcodes-in-an-Access-Report-not-print-properly-on-a-Zebra-S4M-barcode-printer.html for an example).

It may be that the Canon has extra (proprietary) intelligence built-in to perform the necessary data transformations & checksum calculations needed with most barcodes; this may require you to supply non-standard (proprietary) PCL escape sequences.

If so, the User Guide (or Programming Guide) manual may tell you how (I've no knowledge of Canon devices myself).
The simple method is to install the barcode font on your pc. What type of barcode do you wish to use?

Chris B
Avatar of Joe Kaminski

ASKER

To DansDadUK:
Your example dealt with a Zebra printer.  This is very different from PCL.  I don't believe this is specific to the Canon and if it was I wasn't able to find any Canon programming manuals.

To burrcm:
I believe the barcode type is "Code 39 (USD-3 & 3 of 9).  We are running a Windows domain on a Windows 2008 Server.  I'm hoping I don't have to download anything as the specifications on the Canon state that the barcode fonts should be in the printer.  That being said, I have not been able to print a font list from the Canon that includes any barcodes.  I have the vendor that sold us the printer checking to see if the barcode fonts are indeed in the printer.  But regardless of that I am looking for the specific PCL command that should produce a barcode.  Let me know what you can do.  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of DansDadUK
DansDadUK
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A full free code 39 which will permit the b/code to be used in any application (regardless of printer).

http://www.bizfonts.com/free/

Chris B
>> ... regardless of printer

Provided that you are using a printer driver which will generate the appropriate target printer sequences (including any encapsulated font download).

But the wording ("Could I get the exact PCL commands?") in the originator's post implied perhaps that he/she is not using a standard printer driver (i.e. his/her application may be directly generating the print stream, so would need to emulate how these standard drivers generate the required print data).

Regardless of whether or not a suitable printer driver is in use, this will only work (without additional add-on functions) for a very simple barcode symbology (like Code 39 Standard) which only requires the addition of Start and Stop characters.

But for anything more complicated (like Code 128, or EAN-013, or DataMatrix), the application would have to include (perhaps via an add-on library) the intelligence to perform the required data transformation.
This is required for Windows application display purposes, as well as eventual print output (I forgot to mention this point when I outlined how Word, etc. interfaced with the printer driver to generate the output print stream).