Barcoding 101

I covered what I thought were the tougher 2D barcodes a while back , we documented the simpler codes (and the 2D's for that matter ... same principle) but I think because we decided to break the doc into two sections, one for the template designer and another for the developer I think we confused things a little and caused a disconnect for most folks. So to make ammends until we revamp the docs. Today, I'll cover the simple stuff ...

Simple Barcodes

If you are using something like a code 39 barcode it may not require any pre-processing on the data to be 'coded'. This is the simplest form of barcoding. Firstly you need to build and test on your desktop. Here are the steps:

  1. Install the barcode font in your WINDOWS_HOME/fonts directory
  2. In MSWord highlight the field/data you want to have the barcode applied to
  3. To test the output you need to let the publisher engine know where the font is on the desktop. Under the cleint install directory you'll find a config directory and under there an 'xdo example.cfg' file. Open it up and you'll see a sample entry for a font:

    <font family="GnuMICR" style="normal" weight="normal">
     <truetype path="C:\WINNT\fonts\GnuMICR.ttf" />

  4. Just change the entry to point to your font and for the family attribute pput in the name you see in Word when selecting the font.
  5. Rename the file to xdo.cfg
  6. Test your template, you should see the barcode font being used to replace the data in the output 

Now you need to deploy to the server. The template is simple enough, but we need the server publisher engine to know the location of the font. For both EBS and standalone there is an interface to load the font to the server, the steps are now pretty straightforward. In EBS just use the Font Manager, I covered how to load fonts in this article. For standalone:

  1. On the operating system copy the font to the JDK/fonts directory
  2. Login as an administrator and go to Admin tab > Font Settings
  3. Now fill the details out about your font and select the font file from the drop list.
  4. The font is now available to all templates in the system.
 Thats it for simple barcodes ... I'll cover how to pre-process data before applying the bar code next.


Hi Tim, AS suggested , i have made the settings for GnuMICR font and i am able to see the font in Preview of XML Publisher Admin responsibility. But when i run the Format Program through Payables and check for the O/P, I do not get the GnuMICR font . Plesae let me know, how to achieve this. Thanks Rakesh

Posted by Rakesh Sreenivasa on June 10, 2009 at 05:31 AM MDT #

Awesome blog :) I'm glad I wandered here through yahoo. onna definitely have to put this one on the blogroll...

Posted by Liliana Rolfe on December 09, 2009 at 03:41 PM MST #

I don’t usually reply to posts but I will in this case. WoW

Posted by Philadelphia SEO on February 04, 2010 at 03:37 PM MST #

Online articles directories have significantly gained in reputation during the last few years. The main reason for this are various SEO coupled features and possibilities an article directory has to offer to authors and content seekers. Some of the popularized articles directories allow authors to submit their work for free while some charge a small one-time registration fee. Submit your articles to a dir247 and get published within a day!

Posted by Sheba Sonnabend on February 17, 2010 at 02:37 AM MST #

I basically use social media because it’s simple. I recommend or use it primarily because I think this certain kind of challenge and creative chance to be enjoyable. It always was even way back when in the 90s, prior to it being called it “social media”. And now it’s much simpler to be effective when you’re having fun doing what you do.

Posted by Fredric Cerroni on April 20, 2010 at 10:53 AM MDT #

I have implemented the steps for MICR fonts. When I load xml data in RTF template and preview it in PDF I can't see the MICR. when I preview it in HTML, RTF I can see the MICR. please advice/

Posted by Dutta Padwal on July 12, 2010 at 07:36 AM MDT #

Dutta, Could you get this issue resolved? I have the same issue, I am able to see the MICR on rtf but not on pdf. Thanks!

Posted by Ramya on July 28, 2010 at 02:53 AM MDT #

Very helpful, I look forward to researching this a little more. Hopefully I can see some good results with trying this and putting my own spin on it.

Posted by Mark Young on August 01, 2010 at 10:18 AM MDT #

Great post!

Posted by Spring Grove Roofing on August 04, 2010 at 10:51 PM MDT #

Thanks from sweden for this post

Posted by kläder on August 18, 2010 at 05:18 AM MDT #

This is really great, I used to generate barcodes using plug-in or .NET control, but did not try the font yet. Will have a try of the free version right now, Thanks!

Posted by guest on November 12, 2012 at 07:38 PM MST #

Post a Comment:
  • HTML Syntax: NOT allowed

Follow bipublisher on Twitter Find Us on Facebook BI Publisher Youtube ChannelDiscussion Forum

Join our BI Publisher community to get the most and keep updated with the latest news, How-to, Solutions! Share your feedback and let us hear your voice @bipublisher on Twitter, on our official Facebook page, and Youtube!


« July 2016