Unable to open .xlsx file [Resolved]

Posted by Manorama under ASP.NET on 5/6/2013 | Points: 10 | Views : 2530 | Status : [Member] | Replies : 3
Hi to all

I done one application by using MVC3 . i.e i am exporting the data to Exel .In .xls i am storing the data after opening it showing the data also,but .xlsx its opening but not showing the values (After opening it showing some error like this " Excel cannot open the file .xlsx because the file format or file extension is not valid").

Please guide me anyone,


Thanks in advance

Manorama

ManoRama


Responses

Posted by: aswinialuri-19361 on: 5/7/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
instead of .xlsx you will try .xls file

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Niladri.Biswas on: 5/6/2013 [Member] Platinum | Points: 25

Up
0
Down
Try saving it as .XLS file.

Response.AddHeader("Content-Disposition", "attachment; filename=report.xls")


Best Regards,
Niladri Biswas

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Manorama on: 5/7/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for reply...i got it

ManoRama

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response