Add Picture

VSTO Words

Word.Application wordApp = Application;
            wordApp.Documents.Open(mypath+"Add Picture.doc");
            //Add picture to Doc
            this.Application.Selection.InlineShapes.AddPicture("download.jpg");

Aspose Words

Document doc = new Document();
            DocumentBuilder builder = new DocumentBuilder(doc);
            //Add picture
            builder.InsertImage(MyDir + "download.jpg");

            doc.Save("Adding Picture.doc");

Download

Last edited Feb 4, 2014 at 5:48 AM by asposemarketplace, version 2