System.Runtime.InteropServices.COMException: This command is not available because no document is open <p>I am using code below -I try to save <code>Word</code> document file as <code>.htm</code>. Can anybody solve this problem?</p> <pre><code>objWord.Documents.Open(ref FileName, ref readOnly, ref missing, ref missing, ref missing, ref missing,ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing,ref missing, ref missing); Document oDoc = objWord.ActiveDocument; oDoc.SaveAs(ref FileToSave, ref fltDocFormat, 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>