Building your own Mail Merge application with Open XML SDK 2.0.
Here is another take on mail merge automation inside an application. If you want to program an application to generate documents from your data then you don't want to automate Word to do this on your server. While there are excellent tools for this purpose such as at www.aspose.com, this new sample shows an approach that can work in simple situations if you are using Open XML. It uses standard Mail Merge field codes that can be created inside Word. Now you can create an test your mail merge in Word, but then generate the documents directly from a database application. Note that for more complex mail merge scenarios you’d probably want to code XSLT as in earlier sample posted here. The sample is a simple Customer acknowledgement screen that creates and opens a customised letter in Word.
Click here to read the article in full.