Click here to Skip to main content
16,023,047 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a tabular format in asp.net using repeater and then open an excel 2003 using
content-type application/vnd.ms-excel
This workd for excel 2003

But i need to open an excel file format for excel 2010. Through my code I downloaded the excel file and I have excel 2010 installed on my PC. But
Getting the "incorrect format file issue" when tries to open the same
downloaded file.

Please help me out.

Thanks in advance
:)
Posted

1 solution

Have you tried
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
 
Share this answer
 
Comments
Gagandhiman 18-Aug-10 2:42am    
Yes I have tried the same but the incorrect format file is coming when I tried to open the downloaded file.

can we do some other stuff like converting repeater data to XML format and then to load it in excel 2010 format.... what say? .. suggesty something
Svetlin Panayotov 20-Aug-10 3:46am    
You can use this library http://www.codeproject.com/KB/office/ExcelReader.aspx
Or use OpenXML SDK - here's an example:
http://blogs.msdn.com/b/brian_jones/archive/2010/06/22/writing-large-excel-files-with-the-open-xml-sdk.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900