.Save(...) problem


#1

Hi Laurence.

In Aspose.Excel I used to be able to do

myExcel.Save("report.xls", SaveType.OpenInExcel, FileFormatType.Excel97, this.Response);

and this worked on both HTTP and HTTPS

After upgrade to Cells This doesn't work over HTTPS anymore(in IE6). Is there workaround for this problem? It did work before!

P.S. It looks like your PDF team had similar problem and was able to fix it: http://www.aspose.com/Community/Forums/16420/ShowPost.aspx

Thanks!


#2

This seems to work over the SSL

MemoryStream stream = new MemoryStream();

excel.Save(stream,Aspose.Cells.FileFormatType.Excel97);

Response.Clear();

Response.ContentType = "application/vnd.ms-excel";

Response.AddHeader("Content-Disposition", "attachment; filename=Order.xls");

Response.BinaryWrite(stream.ToArray());

Response.End();