For anyone using
Excel automation in .NET or ASP.NET applications, you'll find several answers to the age old question haunting many newsgroups, blogs and forums: "
How do I kill Excel?". After outlining how to configure and start an Office app within your .NET desktop or ASP.NET application, this article shows you how to properly dismantle and close the specific instance of Excel that you had started. For the interested student this article will explore several important Windows concepts that apply well beyond the usage of Excel: including
COM interop/config./management, the
.NET Process class, and how to use “
PInvoke” to call
Windows API methods not implemented in the .NET Frameworks.
[read article...]