Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Tue Sep 18, 2012 1:50 pm

We noticed something strange about the return of the file generated by your component. In internet explorer browser, instead of returning the XLS file, it returns the ASPX file.

The version I'm using is, and I'm using the method workbook.savetohttpresponse

What can I do to prevent this?

thank you

Posts: 4
Joined: Tue Sep 13, 2011 9:53 pm

Wed Sep 19, 2012 7:08 am

Dear condornwmsn,

Thanks for your inquiry.
We have done a test, but we don't reproduce your problem, please confirm filename extension is .xls or .xlsx, if you save the filename extension is .aspx, it will return the aspx file. We provide you the sample code. If you still have the problem, please tell us, and provide us some code, so that we can reproduce your problem and solve it quickly. Thanks.
Code: Select all
workbook.SaveToHttpResponse ("test.xls",Response);

Thanks and regards,
e-iceblue support
User avatar

Posts: 2407
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS