Hi to all,
I'm using Asp.net 2.0-C#, Crystal Report 11 Service Pack2.
I write the custom code to export excel, it's exported but when i open the file then it'll throw an exception as Missing file: ...t\System_Web\2.0.50727
crystalreportviewers115\css\default.css.
/This is custom code to export the records from crystal report to Excel file format/
vwPage.Response.Clear();
vwPage.Response.Buffer = true;
vwPage.Response.ContentType = "application/vnd.ms-excel";
vwPage.Response.AddHeader("content-disposition", "attachment; filename=" + strExcelFileName);
vwPage.Response.BinaryWrite(strmRptDocument.ToArray());
HttpContext.Current.ApplicationInstance.CompleteRequest();
What is the problem and how to solve this?