title: C# Skip/Cancel Saving the Opened Word Document
body: <p>I Opened/Created a new Word document dynamically on FormLoad using:</p>
  
  <ul>
  <li>using Word = Microsoft.Office.Interop.Word;</li>
  <li>oWord = new Word.Application();</li>
  <li>oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);</li>
  </ul>
  
  <p>I have "SAVE BUTTON" that saves the said document using:</p>
  
  <ul>
  <li>oDoc.SaveAs(ref filename, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);</li>
  </ul>
  
  <p>Then I added the syntax for closing the document on FormClosed using:</p>
  
  <ul>
  <li>oDoc.Close(ref oMissing, ref oMissing, ref oMissing);</li>
  </ul>
  
  <p>Scenario: I Ran my program and closed/exit after. Suddenly a "Save as" dialog for the document popped up. I realized that I haven't saved the document because the saving process is in the "SAVE BUTTON".</p>
  
  <p>How can I scape saving the document or automatically choose "cancel" for saving? Any help folks?</p>