Calling Save(Response.OutputStream- FileFormatType.Default) produce exception


I have use Aspose.Excel on web site to export DataSet to Excel.
When I call excel.Save(Response.OutputStream, FileFormatType.Default) I receive exception

[NotSupportedException: Specified method is not supported.]
System.Web.HttpResponseStream.set_Position(Int64 value) +51
Aspose.Excel.Ss.ಚ.ತ(Stream Ԏ) +53
Aspose.Excel.Worksheets.֙(Stream Ԏ, FileFormatType ֘) +44
Aspose.Excel.Excel.Save(Stream stream, FileFormatType fileFormatType) +119

I think that solution for this problem that requires your fix described here:

Aspose.Excel have not this exception.


Please try this fix.


Thanks Laurence, this works fine. And I found early that you have special overload of Save method for HttResponse output, it works fine in

Igor Morozov