elegantfalo.blogg.se

How to put footnotes in word
How to put footnotes in word






how to put footnotes in word how to put footnotes in word how to put footnotes in word

Initialize an instance of the Document class Save the result document using Document.SaveToFile() method.Set formatting such as font name, font size and text color for the footnote text and reference mark.Set the footnote text using ().AppendText() method.Insert the footnote reference mark after the text range using () method.Add a footnote to the paragraph using Paragraph.AppendFootnote(FootnoteType.Footnote) method.Access the owner paragraph of the text range through TextRange.OwnerParagraph property and get the index of the text range in the paragraph using () method.Search for a specific text in the document using Document.FindString() method and get the found text as a single text range using TextSelection.GetAsOneRange() method.Load a Word document using Document.LoadFromFile() method.Initialize an instance of the Document class.To insert a footnote for a specific text, you need to search for the text and get the paragraph where the text is located, after that add a footnote to the paragraph, then insert the footnote reference mark after the found text and set the footnote text. Insert a Footnote in Word in C# and VB.NETĪ footnote consists of two parts - a footnote reference mark and the corresponding footnote text.








How to put footnotes in word