Hi there!
Is there any way to stop the “repeating of the first row (table header) on each page break” behavior?
Thank you!
Doug
Hi there!
Is there any way to stop the “repeating of the first row (table header) on each page break” behavior?
Thank you!
Doug
Hi Doug,
Thanks for your inquiry. Please iterate through all rows of table and set the value of RowFormat.HeadingFormat property as false to stop repeating table’s header on each page.
Document doc = new Document(MyDir + "in.docx");
Table table = (Table)doc.getChild(NodeType.TABLE, 0, true);
for (Row row : table.getRows())
{
row.getRowFormat().setHeadingFormat(false);
}
doc.save(*getMyDir*() + "out.docx");
Please let us know if you have any more queries.