Singaravelan
Singaravelan

Reputation: 849

xls file unknown file format in IE8

I have develop a report and export as excel file. When download that excel file it can not open in microsoft excel. it shows unknown file format. When export in pdf it open in adobe reader directly. Why the excel file not open directly.

Upvotes: 1

Views: 342

Answers (2)

Singaravelan
Singaravelan

Reputation: 849

I solved using open windows explorer->Tools->Folder Option-> select "File Types" tab -> click on "New" button and Click on "Advanced" button provide the extension and choose Microsoft Office excel application ->OK(twice)

That's it.

Upvotes: 0

EricLaw
EricLaw

Reputation: 57095

Use Fiddler or the IE developer tools to examine the Content-Type header of the HTTP response. It should be: `Content-Type: application/vnd.ms-excel' (see here).

Also, look for a header like Content-Disposition: attachment; filename=foo.xls. If no such header is present, consider adding one.

Upvotes: 2

Related Questions