Row Span with MailMergeDataTable and ExecuteNestedGroup

Hi,

In my ASP.NET software i would like to create .doc with a template and collection.
The template look like this 

I use syncfusion mail merge to merge c# collection in the template with ExecuteNestedGroup(datatable). This is my result:

I expect this :

How I can merge cell like a row span with  MailMergeDataTable and ExecuteNestedGroup?

Thanks for the help!

1 Reply

MR Manikandan Ravichandran Syncfusion Team March 2, 2020 04:00 PM UTC

Hi Pegasus,

Thank you contacting Syncfusion support.

While performing mail merge operation, we didn’t merge the cells based on the cell content. So, to achieve your requirement i.e., cell merging based on the cell content while performing the mail merge operation, you should iterate each row and cell, and merge the cells based on the similar content. Based on this, we have prepared the sample based on your requirement and attached to itself and it can be downloaded from the following link.
https://www.syncfusion.com/downloads/support/forum/152008/ze/ASPNetMVC1336477598

In this sample, we have done the followings.
1. Loaded the template Word document.
2. Found the mail merge table
2. Performed mail merge using ExecuteNestedGroup API.
3. Iterated each row and cell
4. Merged the cells based on the content.
5. Saved the Word document.

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran


Loader.
Up arrow icon