Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created a ssrs report and managed to deploy it.
From the initernet explorer I can browse to the report.
I can select parameters and run the report.
Now I would like to view this report from windows form in vs 2010.

When I want to run view this report by running the winform code, the reportviwere comes up but there is a message which says:
The source of the report definition has not been specified.
How do I solve this please?
Thanks


This is the code to view the report:

C#
this.reportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://" + Common.MachineName + ":1234/ReportServer");            
this.reportViewer1.ServerReport.ReportPath = @"/Reports/" + _strReportName;

 Microsoft.Reporting.WinForms.ReportParameter[] RptParameter = new Microsoft.Reporting.WinForms.ReportParameter[1];
                RptParameter[0] = new Microsoft.Reporting.WinForms.ReportParameter("RequestID", "2");

 this.reportViewer1.RefreshReport();
Posted

1 solution

This error occurs when you assign null or do not assign a report, but should not appear in Preview.

MSDN discuss this issue at: http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/thread/5b6cd9bf-baf0-4726-8507-5e732c48dd10[^]

You can post the queries at Reproting Services thread: http://forums.asp.net/191.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900