I have created a child report which loads data if a parameter is passed from Parent Report. It works fine except for the IMAGE. Image doesn't load. It fails by throwing error:
An attempt was made to set a report parameter 'SubImgPath' that is not defined in this report.
I have defined a parameter 'SubImgPath' inside Child Report and sending parameter but fails:
ReportViewer1.LocalReport.EnableExternalImages = true;
string FilePath = new Uri(Server.MapPath("~/SiteImages/")).AbsoluteUri;
ReportParameter param = new ReportParameter("SubImgPath", FilePath);
ReportViewer1.LocalReport.SetParameters(param);
ReportViewer1.LocalReport.Refresh();