Showing posts with label BI. Show all posts
Showing posts with label BI. Show all posts

How to correctly generate BI/XML publisher Excel output from RTF template

While ago I had a issue where BI publisher which was not correctly generating Excel output format file. This particular problem happened with delivered report, SSR_TSRPT which is the Transcript Report in campus solutions. We have customised the delivered report by adding our own version of template file to the report definition. The Template File is of RTF format and the report output was defaulted to XLS format type.


The problem was it generated the report in Excel format and it was generating the file in .xlsx format and the RTF to Excel conversion was not happy with the new format. Bit of dig around and I found out that due to the new PeopleSoft PeopleTools 8.53 upgrade for the BI Publisher, PeopleSoft has added new configurations to the PeopleTools settings to control report attributes that are specific to PeopleSoft implementation of BI Publisher. The specific property is “psxp_excel_outputformat”. According to PeopleBooks;

So to make it compatible with older versions of Excel and to generate the output correctly, I modified properties of the report by changing psxp_excel_outputformat to XLS-MHTML format as described above, the changes are imposed in report level as follows;

How to Add Non-Default Font to BI Publisher Report in PeopleSoft

How to Add Non-Default Font to BI Publisher Report in PeopleSoft
Oracle BI publisher for peoplesoft, support limited number of default-font types. However, when you want to add another font which is not a default font type delivered by BI publisher your report will not display the appropriate font you want. 
In order to change the font you want, you have to take a configuration change in BI publisher. 
BI Publisher system properties settings are defined in the xdo.cfg file. The default xdo.cfg file is located in the $PSHOME/appserver directory, which is shared by all application server and process scheduler domains by default.
For example you want to use font say "Bodoni MT" which is not a default font configured in BI Publisher settings in Application Server. 
Therefore, a xdo.cfg BI publisher config file in App server need to be modified to include "Bodoni MT" font. 
Here is the example xdo.cfg file with added Bodoni MT font. 


<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/"> 
    <!-- Properties --> 
    <properties> 
        <!-- System level properties --> 

        <!-- PLEASE SELECT A VALID TEMPFILE DIRECTORY!!! --> 
        <property name="system-temp-dir">c:/Temp</property> 

        <!-- PDF compression --> 
        <property name="pdf-compression">true</property> 

        <!-- PDF security --> 
        <property name="pdf-security">false</property> 
        <property name="pdf-open-password">user</property> 
        <property name="pdf-permissions-password">owner</property> 
        <property name="pdf-no-printing">true</property> 
        <property name="pdf-no-changing-the-document">true</property> 
    </properties> 


   <!-- Font setting --> 
    <fonts> 

      <!-- Windows Wingdings font --> 
      <font family="Wingdings" style="normal" weight="normal"> 
       <truetype path="C:\WINNT\fonts\wingding.ttf" /> 
      </font> 

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

      <font family="Times New Roman" style="normal" weight="normal"> 
       <truetype path="C:\windows\Fonts\times.ttf" /> 
      </font> 

      <font family="3 of 9 Barcode" style="normal" weight="normal"> 
       <truetype path="C:\WINNT\fonts\3of9.ttf" /> 
      </font> 
       
      <font family="Bodoni MT" style="normal" weight="normal"> 
       <truetype path="C:\WINDOWS\Fonts\BOD_R.TTF" /> 
      </font> 

    </fonts> 
</config> 

to add a font, add font element (see example above for Bodoni MT) and set the truetype path as above.