Detail table and page break

I have a multipage invoice to design which have fixed fields to be repeated in each page at top (60% of the page from top is such fixed fields), next is a dynamic table (detail table) to contain maximum 10 rows (say it constitutes the next 35% of page height), and below it again fixed fields(rest 5% of the page height) to be repeated in every page. Multipage happens when dynamic table has more than 10 rows worth of data.
Now I want in the second page the detail table continues(starts) at the same position where it has started in page 1 (i.e. leaving the top 60% of fixed fields space), and to contain the bottom most fixed fields (last 5%) again. What is the way to achieve it.

My approach - I made the top 60% and bottom 5% fixed fields in master sheet, so that it is fixed and repeated in every page. The detail table is in print section(page1) which starts after several < br > so as to allow top 60% of fixed data from master sheet to not overlap with this detail table. But in the next page (when number of rows in detail table is more than 10), the table rows overlaps (spills over) the fixed top 60% content. It starts from the beginning in the second page. Also how to introduce a page break after 10 rows in my detail table? Currently it spills in the first page’s bottom fixed data (the 5% fixed one) until 12-13 rows in page1. Please help.

Can someone please help. I tried setting widow and orphans for detail table but page break doesn’t happen after 10 rows, it rather overflows in the bottom (footer, last 5% of page) with some more rows (until end of page is reached). Also cannot find a way to start the detail table’s remaining rows in second page from a fixed position at bottom (not from beginning).

I wouldn’t use <br> to space the start of the dynamic table.
You should set the margins on your master page to define the dynamic area - this will control where the content in your Print Section can be displayed.

In your example, bring your Master Page top margin down by 60% (in mm) and the bottom margin up by 5% (in mm).

1 Like

This is exactly what was needed. It worked, thanks.