Missing table header on new page

We are using Gembox.Document version 35.0.0.1363 in C# to generate a pdf containing people and their procedures. We do this by cloning two header rows from a docx template, then cloning and appending individual rows for procedures. The result is saved as pdf in landscape orientation.

This works most of the time. The problem appears as a disappearing header row when the table breaks onto a new page. We assume the amount of space occupied by rows on previous page causes this, since adding another procedure row (number 30) on the previous page to the problematic example below fixes the problem (this, however, is not an acceptable solution, as the data and number of rows varies).

OK example:

Here the page breaks nicely and all the header rows are visible for the person on next page.

Problematic example:

In the problematic example, the red arrow marks where the first header row should appear. We have verified in debugger that the row is present in the data structure. This can occur multiple times in a single document.

Hi!

It’s hard to say anything like this so please create a small VS project that reproduces this behavior and send it to support@gemboxsoftware.com so we can investigate it.

If I understand correctly, you are cloning those header rows and inserting them inside the same table. You shouldn’t do that.

Instead, you should have a separate table for each person and its procedures. Each person’s table would have two header rows that would have TableRowFormat.RepeatOnEachPage set to true.

Regards,
Mario

Thank you for the reply. We have implemented some of your suggestions. The result, however, remains the same. I will send you the section of code in a small VS project, but as the implementation depends on our internal libraries, we cannot send you a compilable version.
Please let us know if there is anything else we can try.