Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); //Do some stuff here... excel.Quit(); while (Marshal.ReleaseComObject(excel) != 0) { } excel = null; GC.Collect(); GC.WaitForPendingFinalizers();
Specialising in all things .NET, Brad has experience in a range of technologies including Microsoft ASP.NET, AJAX, SQL Server & EPiServer CMS to name but a few...