I need to export data to a formatted Excel document.
Basically, a non-technical person should be able to create (or just modify) an Excel document that will be the template for the export process.
The template should describe headers, used fields, etc. Knowing the template I have to export data to this document. Basically, it will look something like this:
Header
{record.Name}
The template document will be quite complicated - it will have custom formatting, tabs, etc. However, formatting cells is not my task, I just need to fill the document with data. I will need to export not only single fields but also lists so I will need to add rows to the document for every element in the list.
Currently, I'm using Excel 2003, but I can change it to Excel 2007 if this version supports better integration.
I don't know if Excel allows this kind of integration out of the box, but for me it is not important if I had to define some custom tags in the Excel document or use some third party library.
I'm using .NET 3.5 and C#.