public static string CreateFooter(MainDocumentPart mainPart, OpenXmlCompositeElement element) { FooterPart footerPart = mainPart.AddNewPart <FooterPart>(); Footer footer = new Footer(); AddHeaderFooterNamespaceDeclaration(footer); if (element != null) { footer.AppendChild(element); } footerPart.Footer = footer; return(mainPart.GetIdOfPart(footerPart)); }
public static string CreateFooter(MainDocumentPart mainPart, OpenXmlCompositeElement element) { FooterPart footerPart = mainPart.AddNewPart<FooterPart>(); Footer footer = new Footer(); AddHeaderFooterNamespaceDeclaration(footer); if (element != null) footer.AppendChild(element); footerPart.Footer = footer; return mainPart.GetIdOfPart(footerPart); }
public static void Add(this Footer header, Table table) => header.AppendChild(table);
public static void Add(this Footer header, Paragraph paragraph) => header.AppendChild(paragraph);