关于来版本Aspose.Cells在IE 11中使用的问题

我们有一个关于老版本Aspose.Cells在IE11上使用的问题

版本:4.7.0.0 ,License 版本 :2.1

我们在IE11上用Aspose.Cells生成并下载excel时,会发生下面的情况
捕获.PNG (5.1 KB)

我们查看代码发现,是由于老版本的Aspose.Cells中使用了Response.Close和Response.end来结尾,所以在IE 11中会引起该问题。

请问我们该如何处理

@WQ99

我们害怕,您使用的是非常旧的版本,我们只在最新版本中修复此问题。

但是,请尝试此代码,并检查它是否有所不同,并为您工作。

C#

//Save file and send to client browser using selected format
if (yourFileFormat == "XLS")
{
	workbook.Save(HttpContext.Current.Response, "output.xls", ContentDisposition.Attachment, new XlsSaveOptions(SaveFormat.Excel97To2003));

}
else
{
	workbook.Save(HttpContext.Current.Response, "output.xlsx", ContentDisposition.Attachment, new OoxmlSaveOptions(SaveFormat.Xlsx));
}

HttpContext.Current.Response.End();