I am downloading an excel file from a server onto a browser machine. The downloaded excel file opens on Excel 2002 (SP3). But when i try to open that file on some other machine having Excel 2000 or Excel 2003, it doesn't get open on those machines. The excel application crashes there after. I am writing the following code to save my excel file onto client's machine.
HttpContext.Current.Response.ContentType = "application/xls";
HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=JobProfiles.xls");
workbook.Save("JobProfiles.xls", SaveType.OpenInExcel, FileFormatType.Default, HttpContext.Current.Response);