Free Support Forum -

How to close the opening excel file?

For example, I use the code line:
startInfo=new System.Diagnostics.ProcessStartInfo(@“C:\Program Files\Microsoft Office\OFFICE11\EXCEL.exe”,@“E:\Initilization.xls”);
process=new System.Diagnostics.Process();
to open an excel file and it runs at the background, now I want to close it ,I use the code line: process.close();
but it did not work ,so how to solve this problem ,thank you!

Please try


thank you I have solved this problem