J
Johnyyy
Guest
I am trying to load remote report from reporting services to my reportviewer control. Nevertheless i got error described below. What i do wrong?
Code:
reportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://desktop-345ge3/Reports/report/Report Project2/Raport1.rdl");
reportViewer1.ProcessingMode = ProcessingMode.Remote;
var rptParameters = new List<ReportParameter>
{
new ReportParameter("ActionOwnerDate_from", DateTime.Now.AddYears(-10).ToString(CultureInfo.InvariantCulture)), new ReportParameter("ActionOwnerDate_to", DateTime.Now.ToString(CultureInfo.InvariantCulture))
};
reportViewer1.ServerReport.SetParameters(rptParameters);
reportViewer1.ServerReport.Refresh();
reportViewer1.RefreshReport();
on this line i get error:
reportViewer1.ServerReport.SetParameters(rptParameters);
i got following error:
Microsoft.Reporting.WinForms.MissingReportSourceException: 'The source of the report definition has not been specified'
Continue reading...
Code:
reportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://desktop-345ge3/Reports/report/Report Project2/Raport1.rdl");
reportViewer1.ProcessingMode = ProcessingMode.Remote;
var rptParameters = new List<ReportParameter>
{
new ReportParameter("ActionOwnerDate_from", DateTime.Now.AddYears(-10).ToString(CultureInfo.InvariantCulture)), new ReportParameter("ActionOwnerDate_to", DateTime.Now.ToString(CultureInfo.InvariantCulture))
};
reportViewer1.ServerReport.SetParameters(rptParameters);
reportViewer1.ServerReport.Refresh();
reportViewer1.RefreshReport();
on this line i get error:
reportViewer1.ServerReport.SetParameters(rptParameters);
i got following error:
Microsoft.Reporting.WinForms.MissingReportSourceException: 'The source of the report definition has not been specified'
Continue reading...