Adding images in word Document in same Paragraph

Hi All,

I am using Essential DocIO 4.4.0.51 for creating word documents Please provide the codes lines for adding the tow are more images in the same Paragraph.

Thanks in advance,
Rambabu


1 Reply

AD Administrator Syncfusion Team November 5, 2008 12:32 PM UTC

Hi RamBabu,

Please use the following code snippet to append the images to the same paragraph.

IWordDocument document = new WordDocument();
IWSection sec =document.AddSection();
IWParagraph para= sec.AddParagraph();
Image img1 = Image.FromFile(@"../../Image.GIF");
Image img2 = Image.FromFile(@"../../google.png");
para.AppendPicture(img1);
para.AppendPicture(img2);
document.Save("sample.doc");

Please let me know if this helps.

Regards,
Dhivya.

>Hi All,

I am using Essential DocIO 4.4.0.51 for creating word documents Please provide the codes lines for adding the tow are more images in the same Paragraph.

Thanks in advance,
Rambabu




Loader.
Up arrow icon