Xls Not Opening in browser or Excel

I am Saving using:

xlWorkBook.Save("test.xls", FileFormatType.Default, SaveType.OpenInBrowser, System.Web.HttpContext.Current.Response)

When I run the web page It never opens the file or prompts me to open using Excel.. It just writes junk to the screeen:

Here:

��ࡱ�!�� a���� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ��a��=�x\: $8X@�"��1���Arial1���Arial1���Arial1���Arial1���Arial1h �Arial1� �Arial1� �Arial���� ����� ����� ����� ����� ����� ����� ����� ����� ����� ����� ����� ����� ����� ����� �� � ���� �,���� �*���� �+���� �)���� ��� �� � � � ��" � � " � ��" � � " � �a�� �� �����������a���������8�������������������������������3f������ff���f����������������������������������̙��̙3f�3���������fff����3f3�f333�3�3f33�333��aSheet1�Q Evaluation Warning����"��Was well as expose the user to other legal recourse for collection and punitive damages.EVALUATION COPYRIGHT WARNINGdThis EVALUATION LICENSE WARNING worksheet will be added to all worksheets created with Aspose.Cells.>This file is created using EVALUATION VERSION of Aspose.Cells. M+CO NameEvaluation Limitations:fAny Violation to the Usage Policies of this Product shall require a mandatory purchase of pay license ZThe usage of this Evaluation Version in any Commercial Application is strongly PROHIBITED.� � ��a�� �� d����MbP?_*+��%�����&�?'�?(�?)�?�" d�?�?U�@�@� �@>�@�" ��������������������������������� ��a�� C � d����MbP?_*+��%�����&�?'�?(�?)�?�" d�?�?U �@�@�@

Any Ideas?

Hi,

What happens when you use SaveType.OpenInExcel, the download dialog box displays and you simply save the file to disk. Does the file open fine in MS Excel later? And could you also test our featured demos:

if they work fine on your browser.

By the way could you try the replace the line as:

[C#]

//Saves file to memory
MemoryStream stream = new MemoryStream();
excel.Save(stream, FileFormatType.Default);
Response.ContentType = "application/vnd.ms-excel";
//This is same as OpenInBrowser option
Response.AddHeader( "content-disposition","inline; filename=test.xls");
//This is same as OpenInExcel option
//Response.AddHeader( "content-disposition","attachment; filename=test.xls");
Response.BinaryWrite(stream.ToArray());

[VB]

'Saves file to memory
Dim stream As MemoryStream = New MemoryStream()
excel.Save(stream, FileFormatType.Default)
response.ContentType = "application/vnd.ms-excel"
'This is same as OpenInExcel option
'Response.AddHeader("content-disposition","attachment; filename=test.xls")
'This is same as OpenInBrowser option
Response.AddHeader( "content-disposition","inline; filename=test.xls")
Response.BinaryWrite(stream.ToArray())

Thank you.