1

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.

Umer
  • 127
  • 1
  • 3
  • 20

2 Answers2

5

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.

EdHayes3
  • 1,777
  • 2
  • 16
  • 31
  • 1
    This should work. Invisible, nested tables is the only way to get formatting correct in BIP. – Ranjith R Sep 09 '18 at 23:29
  • Good point Ranjith; the outer table can be invisible (no defined borders). It may helpful for you to "view gridlines" in the Word table layout ribbon. – EdHayes3 Sep 10 '18 at 14:56
0

What may also help is-

  • Highlight the whole table, right click and select table properties.
  • Click on the row tab and tick the "Repeat as header row at the top of the page" box. (untick allow row to break across pages if it is ticked).

What will occur is rather than a row splitting to the next page the whole table will appear in the next page. This will only occur if a table's row breaks to the next page. Hope this helps or gives another option for future use.

MTQ
  • 33
  • 1
  • 6
  • This trick does not work. I played with this earlier but this never have worked for me. I needed to place page-break on the correct spot to make it work. Thanks. – Umer May 15 '19 at 13:35
  • The thing is sometimes it does not work, have not figured out why. Good solution will also take that on board. Thanks – MTQ May 19 '19 at 17:46