Thank you for your response. Unfortunately it is a very dynamic process that I am designing so I wouldn''t be able to restrict the Execute and ExecuteGroup methods to be run on specific queries.
I''ll have to find another way around that. Thank you for clarifying that section names were unavailable.
>Hi Mark,
>
>Thank you for your interest with Essential DocIO.
>
>1. It is not possible to get the section names from the word document. Because of there is no specific API for set or get the section name from the document.
>
>2. As per your requirement, can you use
Mailmerge.Execute() method for non-group data and use
Mailmerge.ExecuteGroup() method for group data from the template document merge fields. I am not sure if I understand you requirement is correct. However I have created a sample for this scenario. Please take a look for this sample and let me know if it satisfied your requirement.
>
>Sample :
Mailmerge_Sample.zip
>
>Thanks,
>Prabhu.
>