Show Data using Aspose Word

Hello everyone,
I would like to show some data on Word using Aspose.Word arranged as shown in the sample attachment. How do I show it? Do I need to use a table? Please see attachmentSample.docx (14.6 KB)

Thanks

@kshah05,
To show data in the way, shown in your sample document, please use CellFormat.HorizontalMerge property of a table cell. For example, you can build a table, used in your sample document, using a code example, shown below:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.StartTable();
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.First;
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.Previous;
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.None;
builder.InsertCell();
builder.EndRow();
builder.InsertCell();
builder.InsertCell();
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.First;
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.Previous;
builder.EndTable();

doc.Save(@"C:\Temp\table_ex.docx");

For more information, please check the following article: