Free Support Forum -

Document Footer & Tables

Dear all,

I’m using a document template that already defines a footer. The footer includes a table consisting of one row and three columns. How can I insert text into in a given cell of that table using Aspose.Words?


There are three types of footers in the document: primary, first and even.

For example, to get a hold of the document primary footer you need to execute the following code:

HeaderFooter primaryFooter = doc.Sections[0].HeadersFooters[HeaderFooterType.FooterPrimary];

To find a cell number 2 in the given footer do:

Cell cell = ((Cell)(mainHeader.GetChildNodes(NodeType.Cell, true)[2]));

Then use the documentBuilder to insert text to the given cell:

DocumentBuilder builder = new DocumentBuilder(doc);



Thanks a lot. It works fine!

Regards Erik