title: How to NOT save documents using microsoft.office.interop.word
body: <p>Just wondering if anyone knows how to not save a document after creation when using Microsoft.Office.Interop.Word.</p>
  
  <p>Basically i am using mail merge to print off a report from c#, the document get made, values are passed to it no problem and i can then print it without any issues, however, I only need to print the document, I do not need to save a copy on the computer.</p>
  
  <p>Once i have passed all the values to the document, i use the following code to print and close the document:</p>
  
  <pre><code>wordDoc.PrintOut();
  wordDoc.Close();
  wordApp.Application.Quit();
  </code></pre>
  
  <p>However, this prints the document and then the 'Save' dialog pops up, asking where to save the document. I dont want this as clicking cancel produces an error (and requires another unwanted interaction from the user), and i dont need to save the file.</p>
  
  <p>Any ideas?</p>
  
  <p>Using Visual Studio 2012, .NET 4.0, and i have tried using the following files types for the office document: .doc, .dot, .docx, .dotx.</p>