Ask YC: Excel Generation (Server Side)?
I was curious to know if anyone could recommend a component for server side excel generation (both xls and xlsx) for an ASP.NET application. We cannot install Office on the server. We've been using this component from codeplex...
http://www.codeplex.com/ExcelPackage
...and we haven't been thrilled with it. We're open to a commercial solution - we're just not sure what the best option is.
Thanks in advance for any suggestions.
14 comments
[ 3.3 ms ] story [ 39.3 ms ] threadhttp://sourceforge.net/projects/pyexcelerator
If you are using ASP.NET why can't you install Office on the server?
Thanks for the link to the Python framework though.
We tried to use a Java lib for Office docs but it was a pain in the neck. We had some very specific requirements for embedding an ActiveX control into a document and the OSS libs just weren't going to cut it. If your volume requirements aren't too high, I would just start with interoping with MS Office.
Thanks for the suggestion.
- change your response mime-type to application/excel
- supply a filename ending with .xls
- output comma-separated text.
done.
(it only gets difficult if you need to start embedding charts and specifying fonts)
We do need to do some of this
1: SpreadsheetML: You can output XML which is understood by excel, here is an introduction: http://msdn.microsoft.com/en-us/library/bb226687(office.11).aspx
2: Insert values into an existing template.xls which is accessed with sql using an Oledbconnection. The template can have existing charts which will get updated with the new values.
Of course if you can't start with a template or need to add columns on the fly...it might be a little more challenging.