views:

20

answers:

1

I'm using Report viewer to generate the report.following is the code i'm using

 ReportViewer1.LocalReport.ReportPath = @"C:\Users\Saga\Desktop\projectvn\VehicleReport.rdlc";

    ReportParameter Param1 = new ReportParameter("@BrandName", "Toyota");
      ReportParameter[] p1 = { Param1 };
     ReportViewer1.LocalReport.SetParameters(p1);

It gives the following Exception

An error occurred during local report processing

Can any one plz help?

A: 

Sure looks to me like the parameter '@BrandName' is specified incorrectly... can you double-check its name in the actual report file? Perhaps it has different capitalization (e.g. "@Brandname") or spacing ("@Brand_Name") or no at-sign ("BrandName").,,

ewall