Difference between revisions of "AODL example 5"
From Apache OpenOffice Wiki
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
textdocument.New(); | textdocument.New(); | ||
Paragraph p = ParagraphBuilder.CreateStandardTextParagraph(textdocument); | Paragraph p = ParagraphBuilder.CreateStandardTextParagraph(textdocument); | ||
− | Frame frame= new Frame(textdocument, "frame1", "graphic1", @"F:\img.jpg"); | + | Frame frame = new Frame(textdocument, "frame1", "graphic1", @"F:\img.jpg"); |
p.Content.Add(frame); | p.Content.Add(frame); | ||
textdocument.Content.Add(p); | textdocument.Content.Add(p); | ||
Line 11: | Line 11: | ||
</pre> | </pre> | ||
Back to the [[AODL_examples|AODL examples]] overview. | Back to the [[AODL_examples|AODL examples]] overview. | ||
+ | [[category:Summer of Code 2007]][[category:AODL]] |
Latest revision as of 22:24, 25 June 2007
Add graphics to your document
TextDocument textdocument = new TextDocument(); textdocument.New(); Paragraph p = ParagraphBuilder.CreateStandardTextParagraph(textdocument); Frame frame = new Frame(textdocument, "frame1", "graphic1", @"F:\img.jpg"); p.Content.Add(frame); textdocument.Content.Add(p); textdocument.SaveTo("grapic.odt");
Back to the AODL examples overview.