View Complete Thread
  • disable popup message while opening excel with data

    Sep 11, 2018 08:08 AM|paspulatep|LINK

    Hi Team,

    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.ContentType="application/vnd.ms-excel"

    Response. AddHeader="Content-Disposition","attachment"; filename=CAD_All_Report.xls"

    Could you please help me out to disable the popup message(remove).

    Thanks & Regards

    Praveen paspulate