Free Support Forum - aspose.com

Is There an Article on Footnote for .Net

Hi, Is there an Article on Pragmatically adding Footnote for Aspose Word .Net
This message was posted using Banckle Live Chat 2 Forum

Hi


Thank you for contacting support. Please note, you can use Aspose.Words for .NET to insert footnotes into the Word document. Please check the sample code to insert footnotes in the Word document using Aspose.Words for .NET.

[.NET, C#]
// load word document
Document doc = new Document(MyDir + “in.docx”);
DocumentBuilder builder = new DocumentBuilder(doc);
// move cursor to the paragraph
builder.MoveTo(doc.FirstSection.Body.FirstParagraph);
//insert a footnote
builder.InsertFootnote(FootnoteType.Footnote, “Footnote text.”);
// save the resultant Word document
doc.Save(MyDir + “Out.docx”, SaveFormat.Docx);
We hope, this helps. Please let us know for any other assistance or questions.