Posted 3 December 2020, 3:55 am EST
I have a other problem, sorry I don’t know why I can’t create a new topic, I am using Spread build 8.0, I have a spread with multi column, when I have 20 columns, it is no problem, but when I have 22 columns, it will be out of timeout and freeze button back in IE11, I tested in other browser as chrome, edge and it is ok, it is just have in IE11.
In my file c# file .cs has function like btnExcel_Click
FarPoint.Web.Spread.SheetView sheet = new FarPoint.Web.Spread.SheetView();
CopySheet(FpSpread1.ActiveSheetView, sheet);
…
var dataex = ExportExcelData(temp, flags);
if (!string.IsNullOrEmpty(dataex ))
{
Session[SESSION_DOWNLOAD_EXCEL] = dataex ;
string scpt = string.Format(
“insertDownload(‘DBcmFileDownload.aspx?filename={0}’);<” + “/script>”,
System.Web.HttpUtility.UrlEncode(strName));
ClientScript.RegisterStartupScript(GetType(), “exceldownload”, scpt);
}
in javascript:
function insertDownload(urlIn) {
setTimeout(function () {
document.getElementById(‘ifDownloadExcel’).contentWindow.location.href = urlIn;
}, 1500);
}