Multiple Regions

If I have the same table region in my document more than once, I have to execute code that number of times. For example, in your demo using SalesInvoiceDemo.doc in SalesInvoiceDemo.vb, I added a repeat of the order area, and then this code seems to work to look for the region twice:

doc.MailMerge.ExecuteWithRegions(GetTestOrder())
doc.MailMerge.ExecuteWithRegions(GetTestOrder())

First of all, am I getting into any problems by doing this?
Second, I am going to want to write code that loops through the merge fields, looking for with there are any regions (TableStart:Order, for example), and looping to execute ExecuteWithRegions the correct number of times. Do you have any code to show me how this might be done in Aspose.Words?
Thank You,
Derek Hart

Hi
Thanks for your request. This question is answered in:
Best regards.