Picture in Table cell

Mar 11, 2015 at 7:22 PM
Edited Mar 11, 2015 at 7:23 PM
I faced with the problem 'System.NullReferenceException" when I tried to append picture in table cell! I read an article which recommends copying from following table, but it did not help. whether there is still any options?
    Paragraph paragraph = documentWord.InsertParagraph("Example ");
    Table tab = paragraph.InsertTableAfterSelf(1, 1);
    var logo = documentWord.AddImage(@"F:\gerb.jpg");
    Picture Image = logo.CreatePicture(100, 100);
    Paragraph p = tab.Rows[0].Cells[0].Paragraphs[0];
thanks in advance!
Nov 10, 2015 at 8:22 PM
I believe the problem is your file address.

var logo = documentWord.AddImage(@"F:\\gerb.jpg");