Hi Richie,
This is fine, but on viewing "Task List" the application tab shows
"Excel.exe" running. And if I run the program again the message
"Administrator is using the file, file will open in readonly mode" shows.
Any ideas ?
"Jakob Christensen" <jc*@REMOVEpension.dk> wrote in message
news:AF**********************************@microsof t.com...
Assuming that your variable excelApp is just a reference to an Excel
Application, all you have to do is call excelApp.Quit();
HTH, Jakob.
"Richie" wrote:
Hi all,
I want to close excel application from C#, this is the piece of code I
am trying
"System.Runtime.InteropServices.Marshal.ReleaseCom Object(excelApp);"
GC.Collect();
It ain't working ! Any ideas please !!
Thanks.