Hello!
I have a document I converted from HTML and I would like to insert a footer. I have the following code to generate the footer:
private static Footer GeneratePageFooterPart()
{
var element =
new Footer(
new Paragraph(
new ParagraphProperties(
new ParagraphStyleId() { Val = "Footer" }),
new Run(
new Text("Some footer text"))
));
return element;
}
and the following to append it to the document:
wmlDocument.MainDocumentPart.Add(GeneratePageFooterPart());
Though it does not appear to be doing much. I haven’t found any examples of appending a footer to a converted file. Is there some html element that will be converted into a footer I could use or is there some other way?
Thanks!