![adding a footnote in word adding a footnote in word](http://www.word-2016.com/wp-content/uploads/2016/01/insert-footnote.gif)
This was a major problem back then, because there is a section of people in the software industry where they tried to automate the generation of MS Office documents (WORD, EXCEL or PPT). I will try to answer your question without going into too much technical details, and with a bit of history.īefore Microsoft released MS Office 2007, all their Office products, say WORD, PPT, EXCEL, etc all were in binary format. Yes, your question is very valid, especially if you are new to OpenXML technology. This is done in the CreateFootNoteNode(.) method in the code: Step 1 consists of creating a node which corresponds to the Word footnotes syntax.
Adding the footnote text node in footernotes.xml.Replacing the tag with the footnote node in document.xml (which consists of a superscript 1, and its references to footernotes.xml).Adding footnotesĪdding footnotes programmatically to the document consists of two steps: I have attached the sample code, along with a sample document ( template.docx) in which there is only an raw tag, and all the above prerequisites are met. Once this is done, all the above changes will be automatically done. These things can be done either manually, or by opening the Word document and adding the footer section to the document.
![adding a footnote in word adding a footnote in word](https://i.ytimg.com/vi/4F_uoJOibEc/maxresdefault.jpg)