Hi, I’ve got a document template that contains a group of tables on one page to start with.
What I’m doing is inserting rows dynamically based on a given number of records for each of the tables.
So I’ve got a TableCollection and referencing each table by it’s integer reference in the collection. e.g.
Aspose.Words.Document template = new Aspose.Words.Document(templateName); Aspose.Words.Tables.TableCollection clearanceCertTables = template.Sections.Body.Tables; DoStuffWithTable(clearanceCertTables[i]);
Now, if one of the tables ends up being split over two pages which is very likely, I’d like to be able to force that table to start on a new page.
So I think the two things I need to know are
- If I have a table, how can I figure out that it’s split over multiple pages.
- If it is over multiple pages, how do I go about inserting a page break before the table. (I would guess find the table, get it’s parent and insert the page break that way)
Thanks for your help. If you need more info, please contact me.