I'm executing the following code once I've created a workbook using XLSIO:
Workbook.SaveAs(sFileName, ExcelSaveType.SaveAsXLS, response, ExcelDownloadType.Open)
where sFileName is the complete path and filename.
This line of code always creates a "thread was being aborted" error. And, when the dialog to open the file appears, the filename is the webpage filename (e.g., mypage.aspx) instead of the filename being supplied.
1. Is there any way to avoid the "thread was being aborted" error?
2. How can I get the OS to use the actual filename that I'm supplying (xxx.xlsx), rather than the webpage name (mypage.aspx) when opening or saving?