AODL example 5

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Personal tools