Hi All,
In the Aspose word document we have to replace a bookmark text with table…
I have reference to bookmark in the document…
I need to create a table with with single cell and multiple rows in the place where bookmark is present…
Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(_asposeDocument);
//Move DocumentBuildr cursor to bookmark
builder.MoveToBookmark(_currentBookMark.Name);
Aspose.Words.Tables.Table table = new Aspose.Words.Tables.Table(_asposeDocument);
builder.CurrentParagraph.AppendChild(table);
builder.RowFormat.Height = 100;
builder.RowFormat.HeightRule = Aspose.Words.HeightRule.Exactly;
builder.StartTable();
builder.InsertCell();
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
builder.Write(textToReturn);
builder.EndRow();
builder.EndTable();
Tried like above but how can we set tables margin and boder info…
Thanks in advance
Ranganatha