This project has moved and is read-only. For the latest updates, please go here.

How to insert a picture inside a table cell without using Paragraph?

Dec 6, 2012 at 4:14 AM

I need to insert a picture inside a table cell but i can't ajust the size of the cell so the image is places the whole cell. There is a new line above the picture. The code is here:

DocX aDoc =  DocX.Load("PathToDocument.docx");

Image img = aDoc.AddImage(pathToImage.jpg));     
Picture pic = iso.CreatePicture();                   
Paragraph p = aDoc.Tables[0].Rows[1].Cells1].InsertParagraph();                    p.InsertPicture(pic1);

 

Does anyone knows how to fix this? 

Thank you