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?
Make sure you’ve added the parameter in the report (Menu Report > Report Parameters) and if you have done that already, make sure that is not marked as internal otherwise the parameter is read-only.