|
The code example to save the document as DOCX file with the latest app version 16 (Word 2016 application). |
switch (document.ActualFormatType) { case FormatType.Docx: case FormatType.Word2013: case FormatType.Word2010: case FormatType.Word2007: // Saves as DOCX file with the latest app version 16 (Word 2016 application). document.Save(saveFileDialog.FileName, FormatType.Docx); break; } |
|
The code example to save the document as DOCX file with the same app version as like input DOCX file. |
switch (document.ActualFormatType) { case FormatType.Docx: case FormatType.Word2013: case FormatType.Word2010: case FormatType.Word2007: // Saves as DOCX file with the same app version as like input DOCX file. document.Save(saveFileDialog.FileName, document.ActualFormatType); break; } |