title: Word Open XML Mail Merge
body: <p>I'm attempting to manually create a mail merge using Word's XML (from Word 2007).  I have the following XML which isn't working:</p>
  
  <pre><code>&lt;w:mailMerge&gt;
      &lt;w:mainDocumentType w:val="catalog" /&gt;
      &lt;w:linkToQuery /&gt;
      &lt;w:dataType w:val="native" /&gt;
      &lt;w:connectString w:val="Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=TheServer;Data Source=." /&gt;
      &lt;w:query w:val="SELECT * FROM  `Table` WHERE `id_field` = 7" /&gt;
      &lt;w:dataSource r:id="rId1" /&gt;
      &lt;w:activeRecord w:val="0" /&gt;
  &lt;/w:mailMerge&gt;
  </code></pre>
  
  <p>I can't really figure out from the documentation what I'm supposed to do.  This is just a mail merge from a database table.  It says there's an error on the line <code>&lt;w:mainDocumentType w:val="catalog" /&gt;</code>.  I've looked up possible values of <code>w:val</code> without any luck.  I can't find any decent documentation on it.</p>
  
  <p>Anyone have any ideas?</p>