Question : ASP.NET reading, creating Excel files

I'm creating a .NET app that has to be able to:
1. Read/import Excel spreadsheet data
2. Save data into Excel

I am familiar with how to read a spreadsheet using OleDb. Any better (or more updated) way to do it? What exactly is needed to be installed on the server, just JET or what? How can I save data (just as a datatable) into a new XLS file?

If you provide links please tell me exactly why you think the link is helpful and what part. Thanks.

Answer : ASP.NET reading, creating Excel files

OleDb is still the preferred method for reading data from Excel with .NET.  If you need to see the connection string, check here.

As far as exporting to Excel, I've been using a little class called GridViewExportUtil.  You basically create a GridView, bind your data to it, then call GridViewExportUtil passing your gridview and a filename.  It pops up as a csv download, which for most people opens in Excel.
Random Solutions  
 
programming4us programming4us