MSDN
SaveAs2
IntelliSense Word 2007, .NET Framework 4. Word 2007
, ,
Word, , :
string v = _myWordApp.Version;
switch(v)
{
case "7.0":
case "8.0":
case "9.0":
case "10.0":
_myWordDoc.SaveAs2000(ref _documentFile, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing);
break;
case "11.0":
case "12.0"
_myWordDoc.SaveAs(ref _documentFile, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing, ref _nothing);
case "14.0"
_myWordDoc.SaveAs2(ref _documentFile, ref WdSaveFormat.wdFormatHTML,
ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing, ref _nothing,
ref _nothing, ref _nothing, ref _nothing,
ref Microsoft.Office.Interop.Word.WdCompatibilityMode.wdWord2007);
break;
default:
errorText = "Not able to get Word Version"
break;
}
#, .