I am trying to stop Aspose PDF from Page Breaking in the middle of my table (C# .NET). We dynamically add information to this PDF, but this table will always be two rows.
I have found the table.isBroken
attribute always returns true and row.isRowBroken
always returns false (from Aspose). This does not help me to stop the page from breaking in the middle of this table.
I have also tried adjusting the margin to no avail since our pages are dynamic. Google and the Aspose forums and documentation have revealed nothing. I have turned to asking a question here on stackoverflow.com.
Any ideas or suggestions would be helpful! Thank you so much for your time!
You may use RepeatingRowCount property of Table class to set header rows count. It will keep these rows together on page break.
I'm Tilal,developer evangelist at Aspose.
Aspose.Pdf.Table table = new Aspose.Pdf.Table();
table.RepeatingRowsCount = 2;