Free Support Forum - aspose.com

Problem in open

hi

in my application i am exporting the grid results to excel when i click a button.

when i click a button it is showing a dilog box with save ,open, cancle .

save and cancle are ok for me when i click open its geeting opened in internet explorer

where as it should open in excel

the code i used to save is

excel.Save("DatamonitorExcel", Aspose.Cells.FileFormatType.Excel2000, Aspose.Cells.SaveType.OpenInExcel, Response);

Please try :

excel.Save("DatamonitorExcel.xls", Aspose.Cells.FileFormatType.Excel2000, Aspose.Cells.SaveType.OpenInExcel, Response);