Hi All,
I would like to Export the Data from the dataTable in asp.net application,
I am able to export the data to Excel .xls format but i am not able to open the excel spreadsheet format(.xlsx).
when i open its opening only ms Office Execl window but datais not displaying.
please hell its very urgent
Thanks
Bharathi
Export DataTable to Execl spreadsheet giving problem in .xlsx file
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 11, 2011, 8:21 AM EDT
Since an .xlsx file is opened as a package used by 2007 office applications and .xls file is opened by 2007 using the
same content but by some tricks. I would recommend you look into the following to create the .XLSX format files and other MS Office activities.
http://npoi.codeplex.com/
http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html
Please do not forget to mark "Accepted Answer".
Sam HobbsRank #107 · 20.5K reputationPosted Oct 11, 2011, 9:46 AM EDT
You should look at the articles in this web site. It is very likely that there is at least one article that will help you.
Suthish NairRank #92 · 22.8K reputationPosted Oct 11, 2011, 11:39 AM EDT