Search code examples
c#migradoc

MigraDoc Table not continuing to next page


I dont know if this is something I have done as I feel what i am getting is not the 'out of the box' functionality of a table in Migradoc. Basically I have a large table where the columns span beyond the height of the page. As you can see from the screenshot it seems to just continue off the first page over the footer leaving the next page blank with just the table header.

enter image description here

I would like the table to identify the end of the page and then continue on the next page under the Table header row.

The table is setup with the following properties:

table.KeepTogether = false;
table.Borders.Width = 0.5f;

and the first/header row is marked as such with just:

row.HeadingFormat = true;

The only other thing that may be note-worthy but have not yet looked into is that each cell contains a sub table containing the Checkbox, Label Text and small description beneath.

Is/Are there properties i may be missing?


Solution

  • Tables break to the next page, but table rows do not break.

    If you have a single row that is larger than the page then it will not break and will be written over the page boundary.

    The only properties that matter are HeadingFormat and KeepWithNext.