How to read Merge fields from Word Document and write to external file

Posted by Paprikano under C# on 4/5/2013 | Points: 10 | Views : 1031 | Status : [Member] | Replies : 0
Is there a way to read merge fields from an MSWord document and write them to text or word doc,

e.g if HelloPeople.docx has mergKeyFields ( <<margefield helo_FirstNAme \* mergeformat>>)

this on the word document appear as { MERGEFIELD hello_User<1>.FirstNAme \* MERGEFORMAT }

, i want to be able to read all merge field keys from any random document, and write the documentname and all mergefieldkeys inside it into another document or textfile, the Mergefields are unknown, and come from a database, which also can randomly change

pls post any code example..every bit will help with C# code.
Thanks in Advance!


(No response found.)

Login to post response