title: Document.Save is Showing SaveAs Dialog
body: <p>I have a Visual Studio 2010 VB.NET 4.0 Windows Application project. The code is populating a Word 2010 document. There are anywhere in the region of 30 to 60 tables and anywhere in the region of 30 to 50 embedded charts (all defined as inline shapes (<code>InlineShape</code>)).</p>
  
  <p>I had to start putting in regular <code>Document.Save()</code> calls as I was getting the following error: <code>There are too many edits in the document. This operation will be incomplete. Save your work.</code>. There is plenty of disk space available and memory also.</p>
  
  <p>In most cases, the <code>.Save()</code> works, but randomly the save as dialog will be shown when the <code>.Save()</code> is called. As a side note, if I click to cancel the following error is raised: <code>Command failed at Microsoft.Office.Interop.Word.DocumentClass.Save()</code>.</p>
  
  <p>Here is an extract of the code to give you an idea of what is going on:</p>
  
  <pre><code>Imports _word = Microsoft.Office.Interop.Word
  ...
  ...
  Dim wrd As _word.Application = CreateObject("Word.Application")
  wrd.Visible = True
  wrd.ScreenUpdating = True
  
  Dim doc As _word.Document = wrd.Documents.Open("C:\my-file-template.docx")
  
  doc.Application.DisplayAlerts = _word.WdAlertLevel.wdAlertsNone
  doc.Range.NoProofing = True
  
  Dim reportFilePathName As String = "C:\my-file.docx"
  If File.Exists(reportFilePathName) Then
      File.Delete(Me.reportFilePathName)
  End If
  doc.SaveAs2(reportFilePathName)
  ...
  'Numerous tasks carried out
  ...
  doc.Save() 'This may or may not cause the save as dialog to show
  ...
  </code></pre>
  
  <p>Does anybody know why the save as dialog is showing? Can I stop it?</p>
  
  <p>Is there a reason why I am getting the "too many edits" error and therefore don't need to have so many saves going on (which is slowing the process down anyway!)?</p>