how is it possible to merge all cells in a row? The cell has a Property to set the ColumnSpan.
First I created a table with 30 rows and 10 columns in each row and then I set 9 to the ColumnSpan Property of the first cell in a row. However, they don't look good at the attached image
Thanks,
Chi Ming
Hi Chi Ming,
When setting a column span for a cell, you only need to call StartTableCell() once and the cell will take up the required space. So for your example, you only need to call StartTableCell() twice for your first row. The first StartTableCell() contains a ColumnSpan of 9. This will create a cell that spans 9 columns. The second StartTableCell() will be the for 10th column cell in that row.
I have attached an example that creates a word document where the first row has a column span of 9.
Do you have any further questions on this matter?