Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
RTF Lines Per Page - Different First and Others

Summary
RTF Lines Per Page - Different First and Others
Content
Happy weekend, Community!
This is a new twist on an old favorite: I need to print a specific number of records per page to ensure that the layout is as expected. The catch is that I need fewer records on the first page, due to a block of information that is not worth repeating (though there are repeating headers and footers). I read up on how to do the basics and spent a day getting my head around it and doing initial testing. Now I am stuck with either a small number of records on the second page (though the first and 3rd pages look find) or a good deal of wasted space at the bottom of every page but the first.
The template is attached, and I can mask some customer data in sample XML if needed. Any help would be greatly appreciated!!
Answers
-
Hi Leon
There is no simple way to specify the number of records on the first and then subsequent pages in any dialog..
One solution would be to have a table on the first page that looped over a fixed number of records using the position() function to return the number of the row being processed and an XPATH expression to limit the rows|start the rows.
for-each:ROW[position() < 21]
Now create a second page of the template and define the table again.
for-each:ROW[position > 20]
That would get you 20 rows on the first page and the rest of the rows on page 2 onwards. You can of course change the 20 to something else
Tim
0 -
Oh man, Dexter. Thanks!!
Yours is a much less complex approach and does exactly what I need. Three things to polish it up as seen in the second attachment:
- Losing the page-break included in my original version caused my column headers to disappear after the second page (easily fixed - Never name it.: Repeat Table Header in all pages in BIP).
- I also needed to make the entire second table conditionally display (again, normal BIP/Word stuff).
- I did *not* need to create the second table on the second page. It could live inline with the main body
Take care,
Leon
0