Free Support Forum - aspose.com

Moving footnote from one position in the tree to another

Hi

When I move a footnote node from one position in the document tree to another, the superscript identifier at the start of the footnote text is lost. Is there a way of getting this to reappear?

-Ivan

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Could you please provide me code that you are using to move footnote? I tried to use the following code and all works fine.

Document doc = new Document(@"Test230\in.doc");

//Get collection of footnotes

NodeCollection notes = doc.GetChildNodes(NodeType.Footnote, true);

//Get first footnote in the collection

Node firstNote = notes[0];

//Move footnote to the end of document

doc.LastSection.Body.LastParagraph.AppendChild(firstNote);

//save document

doc.Save(@"Test230\out.doc");

Also please attach your document.

Best regards.