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();