I have a requirement where I have to convert the report generated to an .xls file. I have done this successfully on desktops, but when I test it on iPads or Android tablets, it can't open the sheet. I'm confused about why. Am I missing any specific header or content type?
I have used this Header
and ContentType
:
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-disposition", "attachment; filename=table.xls");