Free Support Forum - aspose.com

Error in streaming out Excel Report

Hi,

I am generating Excel Report and trying it to stream it out to the browser like written below.

objWorkbook.Save("HistoricReport.xls", SaveType.OpenInExcel, FileFormatType.Default, Me.Response)

It is working properly in intranet. While I am accessing the internet site, it gives an error that it is not able to download the aspx page which builds the report.

I believe the thread breaks down at the time of respose. Please do suggest me any ideas.

regards,

Venkata

Hi,

Thanks for considering Aspose.

Kindly elaborate your issue and give us the complete error description and detaill about your environment, server info, browser type etc. And what are the IIS / WebServer settings for Internet, Is the web server configured as HTTP Compression or using some other utilities?

Could you try to replace the line of code like:

Me.Response.ContentType = "application/xls"
Response.AddHeader("content-disposition","attachment; filename=HistoricReport.xls")
Response.BinaryWrite(data1)
Response.End()

further check:

http://www.aspose.com/wiki/default.aspx/Aspose.Cells/HTTPCompression.html

http://www.aspose.com/wiki/default.aspx/Aspose.Cells/HttpsSsl.html

Thank you.