IIS 5 & IIS 6
disable popup message while opening excel with data
Last post Sep 12, 2018 07:09 AM by deepakpanchal10
Sep 11, 2018 08:08 AM|paspulatep|LINK
I am able to extract the data in excel sheet, but opening the excel file it popup with below message.
"The file format and extension of 'CAD_All_Report.xls' don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyways"
I am using the below code in Classic ASP to open the excel file with data.
Response. AddHeader="Content-Disposition","attachment"; filename=CAD_All_Report.xls"
Could you please help me out to disable the popup message(remove).
Thanks & Regards
Sep 12, 2018 07:09 AM|deepakpanchal10|LINK
I think the issue is more related to Excel. Your code open the excel using Excel’s default setting and Excel popup the message. And as far as I know, we could not add extra code to change the Excel’s setting in the code.
According to the error message, I would suggest try to check if adding your CAD_All_Report.xls as a trust source in Excel could resolve the issue.