I am writing to an existing Word document using Aspose Words for .NET using C#. I manipulate the document by writing to bookmarks, adding rows to tables and insert text into table cells. The structure of the document is one large outer table of single celled rows with each row containing a table and each of those tables having a title just above it. Sometimes the title ends up on the bottom of a page with its corresponding table on the next page. I would like to ensure the table title is always on the same page as, at the very least, the top row of its table, but allow the table to span multiple pages. I have tried every combination, within Word, of ‘Keep with next’ and ‘Allow row to span multiple pages’ that I can think of but to no avail. From reading multiple forums, it seems I cannot achieve what I want using Word’s features.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Is there a way to do this programmatically with Aspose?
I appreciate your help.