Hi,
I am seeing a warning message while opening the excel file, downloaded in the asp.net program.
The error shown is this
"The file you are trying to open, '4113201136_162848.xls', is in a different format than specified by the file extension.
Verify that the file is not corrupted and is from a trusted source before opening the file.Do you want to open the file
now?"
I am trying to download this excel file using the following code
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition",
"attachment;filename=" + _DownloadableProductFileName);
Response.Charset = "";
Response.ContentType = "application/vnd.ms-excel";
StringBuilder sb = new StringBuilder();
sb.Append("Date\tEmployeeId\tEmployeeName\tZone/Locati ...
Go to the complete details ...