Difference between revisions of "AODL example 11"
From Apache OpenOffice Wiki
m |
|||
Line 1: | Line 1: | ||
<b>Creating Footnotes and Endnotes</b> | <b>Creating Footnotes and Endnotes</b> | ||
− | < | + | <syntaxhighlight lang="c"> |
//Create new TextDocument | //Create new TextDocument | ||
TextDocument document = new TextDocument(); | TextDocument document = new TextDocument(); | ||
Line 15: | Line 15: | ||
//Save | //Save | ||
document.SaveTo("footnote.odt"); | document.SaveTo("footnote.odt"); | ||
− | </ | + | </syntaxhighlight> |
Back to the [[AODL_examples|AODL examples]] overview. | Back to the [[AODL_examples|AODL examples]] overview. | ||
[[category:Summer of Code 2007]][[category:AODL]] | [[category:Summer of Code 2007]][[category:AODL]] |
Latest revision as of 12:41, 22 May 2022
Creating Footnotes and Endnotes
//Create new TextDocument TextDocument document = new TextDocument(); document.New(); //Create a new Paragph Paragraph para = ParagraphBuilder.CreateStandardTextParagraph(document); //Create some simple Text para.TextContent.Add(new SimpleText(document, "Some simple text. And I have a footnode")); //Create a Footnote para.TextContent.Add(new Footnote(document, "Footer Text", "1", FootnoteType.footnode)); //Add the paragraph document.Content.Add(para); //Save document.SaveTo("footnote.odt");
Back to the AODL examples overview.