I have a referrence to Excel 12.0 Object Library in my application. I have made the visible set to false for Excel and doing all my work. When iam trying to terminate the excel while application termination it is closing all the other opened excel workbooks.
Please give a solution.
The code is somewhat like this:
Try
Dim pProcess As Process
exlHandle = oexcel.Hwnd
GetWindowThreadProcessId(exlHandle, exlProcessId)
pProcess = System.Diagnostics.Process.GetProcessById(exlProce ssId)
pProcess.Kill()
Catch ex As Exception
Return
End Try
Thanks in Advance
Murali Krishna
Enter your message below
Sign in or Join us (it's free).