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


#1

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:

http://www.icsharpcode.net/OpenSource/SD/Forum/topic.asp?TOPIC_ID=4704

Aspose.Excel 2.7.0.0 have not this exception.


#2

Please try this fix.


#3

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

Igor Morozov