Tuesday, 24 May 2011

XML Publisher report with barcode

 

   Basically this post refers to any font that you want to embed into you output but I was working specifically on demand to insert the barcode.

  So start with something simple. Obtain the font file. In my case I posses “WASP 39 ELC” font. Font file name is w39elc.ttf. Insall the font into Windows by double clicking on it and choosing “install”

Open your RTF template and place the barcode in the location you want

image

 

So far so good and if you run this template locally on your workstation you will see the barcode. But not in EBS.

  This is what you need to do in order to make it work in EBS

Open “XML Publisher Administrator” responsibility

Go to “Administration”-> “Font Files”

image

 

Click on “Create Font File”

image

In “Font Name” put the name of the font as it appears in Word. Choose the font file and click “Apply”

image

Go to “Administrator”-> “Font Mapping”

image

Click on “Create Font Mapping Set”

image

Put into “Mapping Name” – Bar Code Fonts, into “Mapping Code” – BAR_CODE_FONTS, into “Type” –FO To PDF and click “Apply”

image

Click on the “Bar Code Fonts” link

image

Click on “Create Font Mapping”

image

Define Font Mapping as appears in the print screen bellow and click “Continue”

image

Ok, now you need  template to “know” the barcode font we just created.

Open template definition and go to “Edit Configuration”

image

Expand “FO Processing” and put into “Font Mapping Set” – Bar Code Fonts and click “Apply”.

image

Now you can run your template and it will display the barcode properly

 

No comments:

Post a Comment