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

Free Support Forum - aspose.com

DataSet ReadXml Execute Mail Merge with Nested Regions covering multiple Tables in Word Document C# .NET

How to solve the mail merge with nested mail merge on multiple sections/tables in the document.

for example in your order-order items template shown in the documentation section

if the order information fields are spread all over the document in multiple tables

and orderitems same as in the example doc as seperate table

and payment section in other table which has fields data from the parent order

a)tablestart is used for orderitems which works fine in middle table.

b)the tablestart for order items in top and bottom tables how it works?


Thanks for your inquiry. I have modified your template (see attached document template.dot). Please try executing the following code to generate report:

DataSet ds = new DataSet();

ds.ReadXml(MyDir + "Data.xml");

Document doc = new Document(MyDir + @"Template.dot");


doc.Save(MyDir + @“out.doc”);

I hope, this helps.

Best regards,

Thanks Hafeez, its working now.