I need to create an excel file via C#. I have read a few places that creating an XML document is the easiest way to do this? I need to have multiple named tabs and be able to specify that particular cells are text, date time, numeric, etc... Any suggestions or good examples?
+1
A:
Take a look at NPOI:
This has also been fairly well covered elsewhere on SO:
Whisk
2009-11-09 21:41:44
+6
A:
You need the System.IO.Packaging API - this will allow you to generate .xlsx documents as described in Inserting Values into Excel 2007 Cells. The Excel 2007 format can also be used by Excel 2003 and XP with the free Microsoft Office Compatibility Pack installed.
Murph
2009-11-09 21:43:27
@wcoenen -nice edits, thanks.
Murph
2009-11-10 08:45:15
+1
A:
check out this post: http://stackoverflow.com/questions/170652/whats-the-best-net-library-for-parsing-and-generating-excel-spreadsheets
liya
2009-11-10 11:07:10
A:
We use a suite called Aspose at work. It has a large fully featured "Cells" component that works wonders for us.
mikeschuld
2009-11-17 19:48:28