Hi,
I am inserting text and tables into a middle of an existing document. Sometimes the table may spread across on to the next page in the document. If this happens I would like to be able to insert a page break before the table is inserted so that the table appears on its own page and is not split across two pages. What is the best way to do this ?
My intentions was to do the following :
1. Create a bookmark before the table is inserted, and get the current page count.
2. Insert the table, then get the current page count. If the current page count has increased I would then go back to the bookmark and insert a page break.
To do this I would need to get the current page count.