Here's the problem:
I need to modify an existing Excel spreadsheet using .NET. The spreadsheet is extremely complex and I just need to add data to some predefined areas.
I am researching my options and Excel Automation / InterOp is out of the question since I am implementing an ASP.NET website and Excel is probably not installed on the server. From what I find on the Internet, InterOp is also a very expensive performance solution.
CSV file creation is also excluded due to the complex nature of the original spreadsheet.
I am currently leaning towards the ADO.NET OleDb solution, but I find this to be mentioned very rarely (Google and Stackoverflow.com), so I'm a little worried: what's the trick with OldDb for Excel? The only drawback I can find on MSDN so far is that I cannot create cells with formulas, but this is really not a problem in my case.
I also looked at SSIS, but this is only based on my assumption that you can use existing Excel files when creating spreadsheets. I do not know if this is possible or not.
Then there is OpenXml. This seems overly complicated compared to OldDb, plus it has not yet determined which of the older versions of Excel I should support.
Am I missing something? Are there any more alternatives?
Jakob gade
source share