Trying to mail merge to create multiple documents

I am trying to output one new document per record and I am getting the same initial record over and over again. I have attached a sample application.

https://1drv.ms/u/s!AkH87GvlC5fSiO1LvBNkWjGJkEsRYA

Hi Mike,

Thanks for your inquiry. We are working over your query and will get back to you soon.

Hi Mike,

Thanks for sharing the detail. Please replace doc.MailMerge with dstDoc.MailMerge in your code to get the desired output.

Document dstDoc = (Document)doc.Clone(true);
dstDoc.MailMerge.Execute(row.fieldNames, row.fieldValues);

That worked thank you very much.

Hi Mike,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.