No data genarated in the merge fields of nested mail merge

Hi,
I have run the nested mail merge sample code and the output file is the same as the template with no data generated. I have debug the code and the data tables Order and Item are loaded. What is the problem? Thank you.
Regards

Hi Lan,

Thanks for your inquiry.

The information you provided here, in order to reproduce/fix the issue on my side, is not complete. Could you please attach your input template Word document and code you are getting problems with here for testing. I will check the issue and provide you more information.

Please feel free to ask, we’re always glad to help you.

Best Regards,

Hi there,

Thanks for pointing out this issue to us. The reason for this problem is due to a small mistake introduced into the code recently. Please replace this line below:

doc.MailMerge.ExecuteWithRegions(pizzaDs.Tables[0]);

with

doc.MailMerge.ExecuteWithRegions(pizzaDs);

I have fixed this error in the current code base.

Thanks,

Hi Adam,
It’s great. That line fixes the problem. Thank you very much.
Regards