Free Support Forum -

How to insert a table in every page of section one of a word document

I need to insert a table in every page. I removed the table becasue it was showing up only in the first page of the section one. My document has multiple pages in the section one. Hence, I need to grab the table and insert in every page of section 1. Please help.

DocumentBuilder builder = new DocumentBuilder(myDoc);

Table tb = builder .CurrentSection.Body.Tables[0];


// Now insert in every page of section one.


Hi Rob,

Thanks for your inquiry. Microsoft Word document is a flow document and it does not contain any information about its layout into lines and pages. So there is no way to determine where page starts or ends. However, I can suggest you simply insert Table into the Section’s header. Then a copy of this Table will be displayed on each page. The following article outlines how to create Headers/Footers using DocumentBuilder. I hope, this helps.

Best Regards,