cancel
Showing results for 
Search instead for 
Did you mean: 

crystalreportviewers115\css\default.css

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

problem solved my me

Former Member
0 Kudos

I found the problem,

i wrote a wrong custom dll path in my application, i correct the path now it's working.