Wednesday, March 15, 2017

BI Publisher Different Page Sizes in Single RTF Template

BI Publisher Different Page Sizes in Single RTF Template

In this article we shall see how to create single RTF template and print output in different page sizes based on user parmeter “page_display”.

Design your template with needed content and "if condition" based on which corresponding content will be displayed in different page sizes. This "If" condition will not be simple IF, but it has to be like “<?if@section:$page_display=’L’?>” and defined inside BI Publisher field. My sample template will hence look like


Define page size to Legal Size by selecting from MS Word Menu Layout->Size->Legal for legal text and place pointer on second IF and now again go to Layout->Size


In this pop window select as shown below:-



To confirm that the page break is happening click on “P” in Home



Load dummy sample.xml(it just contains one root node) to test the report.
When page_display is initialized to “L”, PDF output page properties(in Acrobat File->Properties…) is shown below



When page_display is initialized to “S”, PDF output page properties(in Acrobat File->Properties…) is shown below:-

You can download RTF file along with dummy XML Download Here

1 comment: