Adnan
asked on
How to kill excel process kill....
Hi
I want to kill the excel process when it go's to exception handling, because when i get exception for some reason it returns back to my application, but the excel is still running in process.
I want to kill the excel process when it go's to exception handling, because when i get exception for some reason it returns back to my application, but the excel is still running in process.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Process[] process = Process.GetProcessesByName
for (int i = 0; i < process.GetLength(0); i++)
{
//kills excel process
process[i].Kill();
}