Inserting tables that dont span pages

Hi,


I am using the document builder object.

I need to insert alot of HTML content. Some of the content has Tables. Each content block I need to insert can have a mixture of text and tables. I need to make sure that a table never spans a page unless it takes an entire page. If it spans a page, I need to start on a new page and put the table at the top.

How can i do this with builder.InsertHtml()?

What I really want to do is, insertHTML() detect if page count increased, then remove the HTML and insert a new page and then use insertHTML starting at the table.

Thanks in advance
John


Hi John,


Thanks for your inquiry. After inserting HTML, please use the code from following section of documentation:
Keeping Tables and Rows from Breaking across Pages

Hope, this helps.

Best regards,