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.
SKSathish K Syncfusion Team May 13, 2014 08:44 AM UTC
you for your interest in Syncfusion products.
have prepared a sample to meet your requirement that to insert a table after a
bookmark and to insert a page break after bookmark if page count is increased. Please
find the attached sample and let us know if this helps you.
let us know if you have any other questions.