Hi,
I'm trying to create a table structure as shown in the attachment provided, its simple using microsoft word manually but is there a way to do this using Aspose.Words?
I've had a quick look but couldnt find anything in the API to do with cell spliting, although if it is there I've probably just overlooked it.
Any help would be much appreciated
Basically, you should use rows with different number of cells in the row and cells with different widths to create an effect of split cells. And CellFormat.VerticalMerge property is used to control how the cells are merged vertically. Here is a small example:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.StartTable();
builder.RowFormat.Borders.LineStyle = LineStyle.Single;
builder.InsertCell();
builder.CellFormat.Width = 300;
builder.CellFormat.VerticalMerge = CellMerge.First;
builder.InsertCell();
builder.CellFormat.Width = 100;
builder.CellFormat.VerticalMerge = CellMerge.None;
builder.InsertCell();
builder.CellFormat.Width = 100;
builder.InsertCell();
builder.CellFormat.Width = 100;
builder.EndRow();
builder.InsertCell();
builder.CellFormat.Width = 300;
builder.CellFormat.VerticalMerge = CellMerge.Previous;
builder.InsertCell();
builder.CellFormat.Width = 300;
builder.CellFormat.VerticalMerge = CellMerge.None;
builder.EndRow();
builder.EndTable();
Hope this helps,