Search code examples
rtfbi-publisher

BI Publisher > Avoiding Table to split into next page


I have a BIP rtf template that has a table with bunch of fields. The report consists of multiple records and not just a single record. Now requirement is that if the table of next records fits in the same page then place it on the same page else print it on the next page.

For example: it should not be like this:

enter image description here

Instead No. 1-236586771 should have been started on page 2.

Here is what i tried to fix this issue but no luck so far:

  1. Unchecked "Allow row to break across pages" enter image description here
  2. In the paragraph, selected "Keep with next" and "Keep lines together" List item

Please these are my sample xml and rtf: xml, rtf

Please i need help to fix this issue.


Solution

  • You need to nest the tables.

    Put the for-each ssServiceRequest in the first table. Set that row to not break across pages. You'd probably want three columns (1: begin for each, 2: content, 3: end for each).

    Put a new content table inside the first table row that is repeating. But all your display elements inside that table.