title: Convert .doc to .docx in c# / vb.net
body: <pre><code>Microsoft.Office.Interop.Word._Document mDocument = new Microsoft.Office.Interop.Word.Document();
  
  *//This function will convert .doc to .docx
      Public Function FileSave(ByVal fileName As String, ByVal openPWD As String, ByVal savePWD As String)    
                  mDocument.SaveAs2(fileName, WdSaveFormat.wdFormatXMLDocument, , openPWD, , savePWD)             
                  End Function*
  </code></pre>
  
  <p>Above function has written to convert .doc file to .docx using word interop.
  file is created succeessfully but when open the file contents is missing.</p>
  
  <p>Is missing something or is there any alternate method to convert .doc to .docx in c# or Vb.net </p>