I am currently working on Microsoft Word integration with .Net. I currently have a problem in deleting all footnotes in word document. I did not get much help in forums. Can someone tell me is it possible to achieve this functionality.I want to delete all footnotes in word document using aspose.word.
Please use the following code snippet for your requirement.
Document doc = new Document(MyDir + "in.docx");
Node[] footnotes = doc.GetChildNodes(NodeType.Footnote, true).ToArray();
foreach (Node node in footnotes)
{
node.Remove();
}
doc.Save(MyDir + "AsposeOut.docx");
This code is not working…footnote are not removing from the table.could you please tell me another way?
@Syedfahad Could you please attach the document where you need to remove footnotes? We will check the issue and provide you more information.