An Oracle blog about BI Publisher

Client Side Barcode Testing

We had a customer issue a few weeks back ... 'really Tim, I never would have guessed' :0) Yeah, we get some issues sometimes. This was a JD Edwards customer that had developed an encoding class for a barcode. Lost? Check out the Advanced Barcode Support article. Basically, some barcodes need the data encoded, calculating stop bits and such like, prior to applying the barcode font. To support this, we allow you to create a java class that implements a Publisher interface to encode the data values. This can then be called from the RTF template layer using commands - check the user guide people!

The encoding class needs to be in the classpath on the server be it JDE, EBS or standalone - this is straightforward enough but how about being able to test on the Template Builder for Word interface?

It can be done, no support directly in the tool but with a little jiggery pokery we can get the class tested. The list of jar files that the builder will load at runtime is limited but the main one we can highjack is the xdocore.jar. You'll find it under the jlib directory under the Template Builder install directory.


You can open the jar file using something like WinZip, with it you can see the structure of the contents,


The class you developed will no doubt have a package declaration in it e.g. oracle.apps.xx.xmlp.barcode - this needs to map to the path in the jar file. To get it into the jar in the right place just get the class into the directory path on your local drive.


Then, in the case of Winzip, open the jar, then drag and drop the class and ensure the 'Use Full Path Info' option is set to get the class into the correct path that will map to your package specification.


Now, you can test to your hearts content in the comfort and relative speed of MSWord.


Join the discussion

Comments ( 4 )
  • Big Ass Tuesday, July 27, 2010
    Hi, I can't understand how to add your site in my rss reader. Can you help me please?
  • Simon D Wednesday, September 1, 2010
    Hi Tim,
    I am having issues where the barcode font that comes packaged with BI publisher (128R00.ttf) does not render any special characters that are the output of the 128 b encoding process supplied by the BI documentation. My start, check and stop characters are never rendered as a barcode, they always show just as characters, eg.
    if Ì4662ÈÎ is the output of encoding process then everything EXCEPT the special characters is rendered as barcode.
    any ideas?
  • guest Tuesday, November 27, 2012

    Could not see the images, is it testing for barcode in ASP.NET?

  • guest Thursday, November 29, 2012

    Hi David

    Can you explain more about the ASP.NET barcodes and your requirements?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.