Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Problem while modifying Total No of Pages in RTF Template

Summary
Problem while modifying Total No of Pages in RTF Template
Content
Hello,
I am using Page 1 of 1 syntax for Displaying Page No in RTF template. I am using section break "<?for-each-group@section:G_ORDERS[./CS_1!=0];./ORDER_NUMBER?>" for resetting page number for each section. This is working fine. But, the problem is that I have 3 "Terms and Condition" pages in my RTF template making it total of 4 pages. Although the "Terms and Condition" pages starts after " <?end for-each-group?>", in the report output, it is calculating the Number of pages including the 3 "Terms and Condition" pages. So, if the section completes within 1 page, it is still displaying "Page 1 of 4" as the page number instead of "Page 1 of 1", if the section contains 2 pages, it is displaying "Page 1 of 5"/"Page 2 of 5" as the page number instead of "Page 1 of 2"/"Page 2 of 2". I have tried to modify the page number with {={NUMPAGES}-3}, but it is not working.
Can you please help me to sort this out.
Thanks
Saheli
Message was edited by: 3359851 RTF attached.
Answers
-
could you please upload the rtf and sample xml
0 -
RTF uploaded. Please check.
0 -
Hi Saheli,
Have you tried using MS Word native pagination options?
Try setting your headers and footer option to "Different First Page"
and then add "Page Number" on the first and second page.
Once it's done, right click on the page number of the second page (where your terms and conditions starts) and choose "Format Page Number"
Select the "Start at:" radio button and set it to 1
Hope this is helpful.
Regards,
Youssef
0 -
Sample XML also Uploaded..
0 -
Sorry I missed one step
After first page please insert "Page Layout > Breaks > Next Page " and then the first Page in the terms and condition add <?initial-page-number:1?> as shown below
0 -
Hi,
If I understand correctly, you don't want to consider you last three page(Terms and condition) as a part of page numbering.
Please add below code at the beaning of terms and condition page. This will reset your page number and these three page will not be part of your actual report output
<?initial-page-number:1?>
2 -
Try
place immediate after end of @section group
1) <?if:position()=last()?> paste 3 pages you want to display <?end if?>
2) <?start@last-page:body?>
<?end body?>
Thanks
0 -
Thanks Brajesh, your solution is working. In my RTF, section break was already there, so just typing
in first page of "Terms and Conditions" is working for me. Thanks a lot. Saheli
0 -
Hi Youssef, thanks. I tried your solution. But. somehow it was not working. Thanks Saheli
0