We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

No data genarated in the merge fields of nested mail merge


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.


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:

<span style=“font-size:10.0pt;line-height:115%;font-family:
“Courier New”;mso-no-proof:yes”>doc.MailMerge.ExecuteWithRegions(pizzaDs.Tables[0]);<o:p></o:p>


<span style=“font-size:10.0pt;line-height:115%;font-family:
“Courier New”;mso-no-proof:yes”>doc.MailMerge.ExecuteWithRegions(pizzaDs);<o:p></o:p>

I have fixed this error in the current code base.


Hi Adam,

It's great. That line fixes the problem. Thank you very much.