This is a migrated thread and some comments may be shown as answers.

How to group or merge cells in word document

2 Answers 320 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Artemij
Top achievements
Rank 1
Artemij asked on 14 Aug 2019, 12:09 PM

Hello, tell me please, can I do such a thing as merge/group cells in table with the same values when I export datatable from SQL base to word document

if so answer with code example

what exactly I want represent on attached files

2 Answers, 1 is accepted

Sort by
0
Evan
Top achievements
Rank 1
answered on 14 Aug 2019, 10:02 PM
Look into RowSpan for the TableCell you want to have span multiple rows
0
Peshito
Telerik team
answered on 19 Aug 2019, 09:24 AM
Hello Artemij,

Merging rows and columns can be achieved by using the TableCell's RowSpan/ColumnSpan properties. You can find more information on how to edit and update tables in the following links:
 - Table
 - TableRow
 - TableCell

You can use document's EnumerateChildrenOfType<T>() method to locate the table you would like to update.

Hope this helps.

Regards,
Peshito
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
WordsProcessing
Asked by
Artemij
Top achievements
Rank 1
Answers by
Evan
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or