Free Support Forum -

Action Cancelled Message when saving the Excel file

After opening up the Excel file in the ASPX file...

excel.Save("myFile.xls", SaveType.OpenInExcel, FileFormatType.Default, this.Response);

The original browser window gets the "Action Cancelled" screen if I "Save" the file to my harddisc from the dialog window.

Is there a way to auto close the caller page or at least have it not get "Action Cancelled"?


You can put a button or a link button in your aspx page and generate file when the page is posted pack.

private void Page_Load(object sender, System.EventArgs e)

//generate file here