title: Word Interop acting differently on Save/SaveAs2 on different machines
body: <p>I have the following piece of code to transform a docx file to a pdf</p>
  
  <pre><code>MSWord.Application app = new MSWord.Application();
  MSWord.Document doc = app.Documents.Open("C:/temp/mydoc.docx");
  doc.Activate();
  doc.Save("c:/temp/mydoc.pdf", WdSaveFormat.wdFormatPDF); //also tried with doc.SaveAs2(...)
  ((MSWord._Document)doc).Close(WdSaveOptions.wdDoNotSaveChanges);
  </code></pre>
  
  <p>This works perfectly on my pc (Win7 64b with Office 2013) but when I run it on the clients machine (Win8 64b with Office 2013), it <strong>ALWAYS</strong> displays a filedialog when executing the <code>doc.Save()</code> or <code>doc.SaveAs2()</code> calls.  The filedialog also defaults to the Docx option instead of the PDF option causing the user to have to manually select it.  </p>
  
  <p>When clicking OK in the filedialog, the PDF is created correctly but then, still in the <code>doc.Save()</code> or <code>doc.SaveAs2()</code> method, an error occurs with message "Command failed".  If I wrap my code in try-catch and execute the <code>doc.Close()</code> method in the finally block I can bypass the error but that's not a real solution (and the filedialog is still there).</p>
  
  <p>Does anybody have an idea what might cause the filedialog to popup?  Is it Win8 behaviour?</p>