I am working on a project that needs to find all the mail merge fields in a Word template. C#, Word XP InterOp, and Word XP are used in the project.
To get the mail merge fields in the main document can be done through ActiveDocument.MailMerge.Fields. It returns a collection of the codes of all mail merge fields in the active document. But it does not give you the mail merge fields inside a textbox, header, or footer.
Does any know how to get the mail merge field codes in a text box?
Thanks a lot