Thanks for response. I updated with the latest 15.9.0.0 Aspose Words dll but issue is still there. Also i am already moving cursor to run inside the cell.
Aspose.Words.License cellsLicense = new Aspose.Words.License();
cellsLicense.SetLicense(System.AppDomain.CurrentDomain.BaseDirectory + "Aspose.Total.lic");
Document document = new Document();
Body body = new Body(document);
Section section = new Section(document);
section.AppendChild(body);
document.AppendChild(section);
DocumentBuilder docBuilder = new DocumentBuilder(document);
Table table = new Table(document);
table.SetBorder(BorderType.None, LineStyle.Double, 2, Color.Black, false);
Row row = new Row(document);
row.RowFormat.Borders.LineStyle = LineStyle.None;
row.RowFormat.HeightRule = HeightRule.Exactly;
//First Cell of the row
Run run1 = new Run(document);
Cell cell1 = new Cell(document);
Paragraph para1 = new Paragraph(document);
cell1.AppendChild(para1);
cell1.FirstParagraph.AppendChild(run1);
row.Cells.Add(cell1);
docBuilder.MoveTo(run1);
//Second Cell of the row
Run run2 = new Run(document);
Cell cell2 = new Cell(document);
Paragraph para2 = new Paragraph(document);
cell2.AppendChild(para2);
cell2.FirstParagraph.AppendChild(run2);
row.Cells.Add(cell2);
docBuilder.MoveTo(run2);
Aspose.Words.Drawing.Shape shape = new Aspose.Words.Drawing.Shape(document, ShapeType.Image);
shape.ImageData.SourceFullName = @"D:\googlelogo.png";
shape.ImageData.SetImage(@"D:\googlelogo.png");
byte[] imgBytes = shape.ImageData.ImageBytes;
MemoryStream ms = new MemoryStream(imgBytes);
Image sourceImage = Image.FromStream(ms);
docBuilder.InsertImage(sourceImage);
table.Rows.Add(row);
body.AppendChild(table);
document.Save(@"D:\AsposeLinkImageTester.doc");
Please suggest if we need to do any changes. (Above code was working fine with 14.4.0).
Thanks in advance.