views:

31

answers:

1

Hoping someone might have an example of a MailMerge to a Word document that list rows of items in one table, each row having five columns of corresponding data. The problem I am running into is that it wants to create a new complete table for each item in the first column.

A: 

Well, Microsoft Word's mail merge is really suitable for letter-like stuff only. It will create a complete copy of the document for every record in the database. With one little exception for mail labels, where you can use the NEXT field. But it will never grow your table if that's what you want.

Instead, you should trying using our Aspose.Words for .NET reporting feature that works with Microsoft Word documents and MERGEFIELD fields and it also supports repeatable regions and even nested! So you can create a table in Microsoft Word such as for an invoice and then populate it with data using just one line of code.

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/mail-merge-with-regions-explained.html

romeok