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.
Ask YC: Excel Generation (Server Side)?
11–15 of 15 posts
When I was at Bank of America I worked on an internal Project Management tool that used a ton of Excel spreadsheets. If you can start with some kind of template it becomes dead simple. Excel spreadsheets can be used as datasources without Excel being installed on the server (iirc). Our app just connected to the XLS and dumped the data into the existing columns. If you have charts based on those columns then you're good to go.
Re: Ask YC: Excel Generation (Server Side)?
#12Doesn't CSV work for you? I think Excel even parses formulas in CSVs.
Re: Ask YC: Excel Generation (Server Side)?
#13I know of a lib for Python but it only produces xls. http://sourceforge.net/projects/pyexcelerator If you are using ASP.NET why can't you install Office on the server?
The latest (licensed) version of Office we have is 2003. As far as we know using Office 2003 for server side Excel generation is not recommended. Thanks for the link to the Python framework though.
Its not recommended but it does work! We managed to get MS Office to kick out around 10-15 documents per second on a single IIS server running ASP.net without much optimization. If you wanted to go crazy you could just load-balance the servers and kick out way more docs.
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.
Re: Ask YC: Excel Generation (Server Side)?
#14We use FlexCel (http://www.tmssoftware.com/site/flexcel.asp) for some very complex .NET excel and PDF generation, and have been very happy with it. Nice clean interfaces and easy to customize.
Re: Ask YC: Excel Generation (Server Side)?
#15http://en.wikipedia.org/wiki/Office_Open_XML
Generating files with this XML format should let you get something into excel. The only others I know of are Java based as I'm fairly anti-ms : http://poi.apache.org/ and http://jexcelapi.sourceforge.net/