Template Builder is an add-in to Microsoft Word that simplifies the development of RTF templates for creating Reports.
In this example we will create a template for an Invoice which will be used to create an Invoice Report in BI.
- Create a New Data Model .
- In This example , the following SQL Query is used and the Data is generated.
HZ_PARTIES C,MOO_OPTY O,MOO_REVN R,QSC_PROD_GROUPS_B P
WHERE (C.PARTY_TYPE = ‘ORGANIZATION’)
AND (O.NAME = ‘New Invoice’)
AND (O.CUST_PARTY_ID =C.PARTY_ID )
AND (O.OPTY_ID = R.OPTY_ID)
AND (R.PROD_GROUP_ID = P.PROD_GROUP_ID)
ORDER BY O.LAST_UPDATE_DATE DESC
Note: (Create Sample Data by selecting the option Save As Sample Data)
- Then, we shall create a RTF Template using Microsoft Word Template Builder.
Log in to the BI Publisher from Microsoft Word by giving in the credentials and the Report server URL
- Select the Data Model from the Catalog and Click on Create Report.
6.Save the template as RTF file and on the BI, and create a New Report. In this Case we are using the Data Model that was created earlier to build the Report.
Select the option Use Report Editor and click next.
7.Select the Layout for the Report. Here we choose to upload a RTF Template
8.Give a suitable Name for the layout and browse the template file and click Upload.
10.The Report will be generated according on the template that we had created.
The report can also be downloaded in PDF, RTF or any other format.