このコードを試してみてください。
try
{
Microsoft.Office.Interop.Word.ApplicationClass oWord = new ApplicationClass();
object oMissing = Type.Missing;
object fileName = @"c:\test.docx";
Document oDoc = oWord.Application.Documents.Open(ref fileName, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
object fileName2 = @"c:\test2.doc";
object fileFormat = WdSaveFormat.wdFormatDocument97;
oDoc.SaveAs(ref fileName2, ref fileFormat, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
oDoc.Close(ref oMissing, ref oMissing, ref oMissing);
oWord = null;
Console.WriteLine("Done");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
Console.Read();
「xlsx」ではなく「excel-2007」タグを使用してください。あなたの質問にタグを付ける際の提案のプロンプトを見てください:名前の後に10より小さい数字のタグが間違っている可能性があります。 –