Dear jdupee,
Thanks for your inqury!You can do it like this:
- Code: Select all
Spire.Doc.Table table = section.AddTable();
table.ResetCells(data.Length + 1, header.Length);
table.ApplyHorizontalMerge(1, 2, 4); //or//table.ApplyVerticalMerge(1, 2, 4);
Use the fuction ApplyHorizontalMerge(int rowIndex, int startCellIndex, int endCellIndex) you can add Row Span,the fuction ApplyVerticalMerge(int columnIndex, int startRowIndex, int endRowIndex) you can add Column Span!