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

Free Support Forum - aspose.com

Mail Merge using Aspose.Words

I have created a mail merge document as was illustrated in the example Simple Mail Merge. In my document I have a table in which I need every row in the data table I am passing as the argument to the Document.MailMerge.Execute() function.

However, what is actually created is the same row repeatedly in one page. The next page of the document has the next row from the data table. What I need to do is to tell the mail merge document to print one row per row in the table within the merge document.

I can make this happen if I set up the same mail merge document in word and actually define a text file with the data using a CRLF as the line delimiter.

Any ideas on how to correct this issue?

I am attaching a copy of the output word document for reference.

Thanks,

Allen


This message was posted using Page2Forum (attachment) from Preparing a Document - Aspose.Words for .NET and Java

Hi

Thanks for your request. You should use mail merge with regions in this case. Please see the following links to learn more:


Hope this helps.

Best regards.

Thank you very much for the quick response. That solved my problem, and everything seems to work now as expected.

Allen