Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Infragistics.Documents.Word.Document merge cell in a row
posted

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

Parents
  • 34510
    Verified Answer
    Offline posted

    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.

    WordDocumentMergeCells.zip
Reply Children