Here is my code ExportedTable = "<table><th></th>Name<th></th><th>Mobile</th><th>Adress</th> <tr><td>XYZ</td><td>123456789</td><td>XYZ</td></tr> </table>"; Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=Overview.xls"); Response.Charset = ""; Response.ContentType = "application/vnd.ms-excel"; string style = @"<style> TABLE { border: thin solid black; } TD { border: thin solid black; } </style> "; Response.Write(style); Response.Output.Write(ExportedTable.ToString()); Response.Flush(); Response.End(); Now its work fine in windows browsers when i export data in mobile its give HTLM in excel file. I am stuck in this problem how to resolve this?
HTML
XLS
XLSX
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)