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

Free Support Forum - aspose.com

MailMerge in one column table problem

Hello, when I use the MailMerge With Regions in a one column document table the new document do not generate n new rows as I was expecting, it generate the n data in one row in the same cell.


I attached a little program with the example of the problem.

I hope you can help me because I need the n rows.

Hi ,


Thanks for your inquiry and sorry for the delayed response.

Well, Mail Merge with Regions is used to grow portions inside the document i.e. the portion enclosed inside TableStart and TableEnd fields will simply be repeated for every record in the data source. In case of the first Table in your Word document, the content, that is included inside the mail merge region, is simply comprised of a Paragraph. So, Aspose.Words simply repeats the Paragraph enclosed within that region N times. This is not a bug but the expected behaviour of Mail Merge engine. I think you should place the TableEnd:table1 field in the second column and make that second cell very thin to be invisible. In that way you can output your data in Row format.

If we can help you with anything else, please feel free to ask.

Best regards,

Ok, thank you.