I'm working on 'mvc3 Razor' application under 'IIS7', I want the generate an excel file (.xls or .xlsx) which get the data from a database with a specific colors and format and with a good performance. How can i do this?
Asked
Active
Viewed 2,183 times
0
-
There's a lot of info here: http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp – Giovanni B Aug 06 '12 at 13:55
2 Answers
0
Take a look at this previous question . You can probably adjust it to your needs. That one generates an Excel file from a DataSet. Perhaps you could fill that DataSet with your database and then call that method.
Enjoy,
-
The performance of openxml is n't very good it is too slow ,so i'm looking for using oleDb Thanks alot – user1049353 Aug 07 '12 at 06:26