1
Answer

Merge more than two cells in msword Table document using C#

Lokesh Rajana

Lokesh Rajana

7y
219
1
I wants to merge more than two cells in word table by using C# micrososft interop. i am able to merge two cells using following code. 
objTab1.Rows[1].Cells[1].Merge(objTab1.Rows[2].Cells[1]);
 
but, my requirement is to merge more than two cells. please can anyone help me out of this.
 
Thanks in advance. 
Answers (1)
0
Murli Jadhav

Murli Jadhav

NA 358 2.2k 7y
objTab1.Rows[i].Cells[i].Merge(objTab1.Rows[2].Cells[1]);
 
increment i using for loop
   Hope this is Helpfull