title: How do you mail merge a word document in c#
body: <h1>What I'm trying to achieve</h1>
  
  <p>In my c# application I would like to generate a report (word document) from data in my application, I figured that the best way to do this would be to perform something like a mail merge using the data source from my application.</p>
  
  <h1>What I've tried</h1>
  
  <ol>
  <li>I tried following this
  <a href="https://stackoverflow.com/questions/13788604/mail-merge-into-word">Mail Merge into word</a>
  however this uses GemBox which you need to pay for</li>
  <li><p>I have tried using Microsoft.Office.Interop.Word however I fell
  short when I didn't know how to reference the saved template document:</p>
  
  <pre><code>Dictionary&lt;string, string&gt; MailMerge = new Dictionary&lt;string, string&gt;()
      {
          { "ID", "123" },
          { "Name", "Test" },
          { "Address1", "Test" },
          { "Address2", "Test" },
          { "Address3", "Test" },
          { "Address4", "Test" },
          { "PostCode", "Test" },
          { "Year End", "Test" },
          { "SicCode", "123" },
      };
  
      Document doc = new Document();
      doc.MailMerge.Execute(MailMerge);
  </code></pre></li>
  </ol>
  
  <h1>Summary</h1>
  
  <p>I'm looking for some guidance as to what to research further as I believe there must be a 'standard' way of doing this.</p>