Here’s a demo of a simple technique to fill out fields in a Word document. This looks like it would work well if you need to do some type of programmatic mail merge that goes beyond what you can do simply by using Word and Excel. Unfortunately it looks like it is dependent on Windows to run the .exe file.