- 14 名前:デフォルトの名無しさん [2014/07/15(火) 00:32:52.81 ID:uvNrdoIu]
- C#でExcelファイルのデータを読み取る
プログラムを開発しているのですが、プロセスが消えずに残ってしまいます。 どうしようも無いのでfinallyブロックで強制的にExcelのプロセスを削除している のですが何か良い方法はありませんでしょうか? Microsoft.Office.Interop.Excel.Application ExcelApp = new Microsoft.Office.Interop.Excel.Application(); ExcelApp.Visible = false; Microsoft.Office.Interop.Excel.Workbook wb = ExcelApp.Workbooks.Open(ExcelBookFileName, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing); ・・・ 略 ・・・ //Excelを閉じる。 wb.Close(false, Type.Missing, Type.Missing); ExcelApp.Quit();
|

|