Purpose: In this
post we will see how to create a RTF template.
Steps:
ยท
Before creating the rtf template you need XML
dataset. You can create it using simple PL/SQL Program (Click here).
ยท Download and install Java and BI Publisher Tool.
ยท
Open the MS โ Word and you will see Add-Ins tab
at the top of the screen.
ยท
Click on Add-Ins -> Data -> Load XML Data
and upload the xml file.
ยท
Click on Insert -> Table Wizard. 
ยท
Select Table and click on next button.
ยท
Select the columns you want to display in your
output and click on next button.
ยท
If you want create group then select or click on
finish button.
ยท
Now the table has been created with the columns
that you have selected.
ยท
Now we will add header and the parameters list
in the report output.
ยท
Select the top row of the table and right click
on it and Insert -> Insert Rows Above.
ยท
Select all the cells in the new row and right
click and merge cells.
ยท
Select centre alignment and type the Report
Header.
ยท
Similarly add few more rows between header row
and column name header row.
ยท
Select all the cells between Report header row
and column header row except the first two columns and select Borders and
shading. 
ยท
Select the Box option and click on Ok button.
ยท
Now we will add a few fields one by one. Click
on Add-Ins -> Insert -> Field.
ยท
Click at the place where you want to place the
field and then select the field from the block and click on insert button. You
can double click on the field in the block also.
ยท
Similarly add other fields.
ยท
To add the page number select Insert -> Page
Number -> Bottom of Page -> Plain Number 3.
ยท
Now itโs time to see the output. Click on
Add-Ins -> Preview -> PDF.
No comments:
Post a Comment