By Kyle Hatlestad on Dec 21, 2012
I recently had a comment posted on a previous blog post regarding generating barcodes in the reports that come with the records management module (either in WebCenter Content/UCM or WebCenter Content: Records/URM).
I knew we could output barcodes because we do in some of the default reports that come with the product. But even when looking at those rich-text templates, it wasn't clear how they were defined. So I did a little digging and discovered the code needed to be added to those fields to do the barcode magic. I won't repeat the steps on how to update/create the custom reports from my earlier post, but will just cover the few extra steps for barcodes.
Once you have your field input into the template in Word, right-click on the field and choose BI Publisher -> Properties. Click on the Advanced tab and you should see the box for Code with the field you are outputting surrounded by <?field_name?>. For barcodes, you'll want to enter this in that code field:
Just replace dBarcode with your field name (e.g. dDocName, xComments, etc).
Next, you'll want to change the font on the field to be 'BC 3of9'. This font should have been added when the BI Publisher Desktop add-in for Word was installed.
Now simply follow the steps to add the template to the repository and configure the appropriate reports. Now when the reports are run, it should provide the values in barcodes.
One thing I noticed is when I saved the Word document in rich-text format, I was no longer able to re-open that rtf file and get back to the code for the field properties. But in Word's default doc format, I was. So if you think you might need to edit the report later on, it's probably a good idea to save a copy in doc format as well.