I have files with tons of real time data that I process with an C# application. After processing the data it is presented in Excel using a specific template.
This is solved using Interop today. I must say I don’t completely gasp the whole Interop situation. Do I have to manually install the Interop functionality on each end user terminal somehow? How does it handle the mix of 2003/2007 versions?
If you know the structure of your Excel document (and presuming you don’t want and kind of complex macros/ functions/ etc within the Excel document) you can generate XML using the Excel XML format. I’m not referring to OpenXML, I’m referring to the XML format used by Excel prior to 2007.
I cover how to do it here: http://www.aaron-powell.com//blog/september-2008/linq-to-xml-to-excel.aspx
The problem with Interop is that it isn’t really designed to hard core document generation. If you try and do a lot of document processing you can run into locks