title: Saving Word document
body: <p>I would like to save a Word document according to the Word installed version;  </p>
  
  <p>In case it is Word  2003  (appropriate version number is 11), with <code>DOC</code> extension.<br>
  In case the Word version is higer than 2003, with <code>DOCX</code> extension.    </p>
  
  <p>The difference is reflected in the second argument sent to the <code>SaveAS</code> method:  </p>
  
  <pre><code>object fileFormat = GraphDocsSettings.Default.WordInstalledVersion &gt; 11.0?     
                  WdSaveFormat.wdFormatXMLDocument : WdSaveFormat.wdFormatDocument;
  
  wordDoc.SaveAs(ref outputFile, fileFormat, ref missing, ref missing, ref missing,
                             ref missing, ref missing, ref missing, ref missing,
                             ref missing, ref missing, ref missing, ref missing,
                             ref missing, ref missing, ref missing);  
  </code></pre>
  
  <p>However, When using Interop.Word 11.0 I get the following error:   </p>
  
  <pre><code>Microsoft.Office.Interop.Word.WDSaveFormat does not contain a definition for wdFormatXMLDocument.  
  </code></pre>
  
  <p>Any ideas?</p>