I have an issue when working with Excel from C# using the Microsoft.Office.Interop.Excel object.
The problem comes when I try and open a file to write to that I have already have open in Excel. This ultimately errors and then leaves an instance of Excel running in the background.
How can I tell that the file is already open before opening it?
Also what is the convention for disposing with the Excel objects and therefore killing the Excel process?