Hi,
I am tring to display Sql report using Report Viewer in my website for users. But, I am getting the following error.
The
item '/Report/MyReports/MyReport1.rdl' cannot be found.
(rsItemNotFound)
My code is
==========
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/ReportServer");
ReportViewer1.ServerReport.ReportPath = "/Report/MyReports/MyReport1.rdl";
Microsoft.Reporting.WebForms.ReportParameter[] @params = new Microsoft.Reporting.WebForms.ReportParameter[1];
Microsoft.Reporting.WebForms.ReportParameter p = default(Microsoft.Reporting.WebForms.ReportParameter);
p = new Microsoft.Reporting.WebForms.ReportParameter("ID", txtID.Text);
@params[0] = p;
ReportViewer1.ServerReport.SetParameters(@params);
ReportViewer1.ServerReport.Refresh();
Do you have any idea?
Thanks for your help