I’m looking for a library that can generate both PDF and Excel files (which will be returned on-the-fly by a web service).
It’s going to be used for reporting.
(please don’t suggest that I should use OLE automation since it’s pretty worthless in a server environment)
Options to create Excel files:
MS provides the OpenXML SDK V 2.0 – see http://msdn.microsoft.com/en-us/library/bb448854%28office.14%29.aspx
This can read+write MS Office files (including Excel).
Another option see http://www.codeproject.com/KB/office/OpenXML.aspx
IF you need more like rendering, creating PDFs, formulas etc. then there are different free and commercial libraries like ClosedXML, EPPlus, Aspose.Cells, SpreadsheetGear, LibXL and Flexcel etc.
The commercial libraries all can create Excel and also a PDF from an Excel file…
Options to create PDF files:
IF you want to create any PDF then there are also several free and commercial options like iTextSharp, Aspose.PDF, Gnostice PDF.One etc.