Hi
Thanks for
your inquiry. You can use the DocumentBuilder.InsertHtml method to insert HTML
into the document. I think that you can try to use the following code.
Document doc = new
Document(@"346_101920_Subeesh\in.doc");
Table table = new Aspose.Words.Table(doc);
Row row = new
Row(doc);
Cell cell1 = new Cell(doc);
cell1.CellFormat.Width = 30;
row.Cells.Add(cell1);
table.Rows.Add(row);
doc.FirstSection.Body.AppendChild(table);
int tableIndex =
doc.FirstSection.Body.Tables.IndexOf(table);
int rowIndex = doc.FirstSection.Body.Tables[tableIndex].Rows.IndexOf(row);
int cellIndex =
doc.FirstSection.Body.Tables[tableIndex].Rows[rowIndex].Cells.IndexOf(cell1);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToCell(tableIndex,
rowIndex, cellIndex, 0);
builder.InsertHtml("Aspose.Words");
doc.Save(@"346_101920_Subeesh\out.doc");
I hope that
this will help you.
Best
regards.