ReportViewer: Report is not loading/How to run a report without having to click on the View Report button?http://forums.asp.net/t/1802508.aspx/1?ReportViewer+Report+is+not+loading+How+to+run+a+report+without+having+to+click+on+the+View+Report+button+Wed, 16 May 2012 06:06:23 -040018025084975378http://forums.asp.net/p/1802508/4975378.aspx/1?ReportViewer+Report+is+not+loading+How+to+run+a+report+without+having+to+click+on+the+View+Report+button+ReportViewer: Report is not loading/How to run a report without having to click on the View Report button? <p>Hi,</p> <p>I am new to reporting services. &nbsp;I added a reportviewer with parameters to display a graph. &nbsp;The graph doesn't load at all, but the parameters and toolbar show. &nbsp;When I ran the report on ReportManager, it ran fine, but when I click on View Report, it doesn't display anything. &nbsp;Also, how would I run the report Dyamically without clicking the &quot;View Report&quot; button? &nbsp;</p> <p>Here is my code:</p> <p>ReportViewer rptViewer = new ReportViewer();<br> rptViewer.ProcessingMode = ProcessingMode.Remote;<br> rptViewer.ServerReport.ReportServerUrl = new Uri(Convert.ToString(ConfigurationManager.AppSettings[&quot;ReportServerUrl&quot;]));<br> rptViewer.ServerReport.ReportPath = &quot;/Graph/Graph&quot;;<br> List&lt;ReportParameter&gt; parameters = new List&lt;ReportParameter&gt;();<br> parameters.Add(new ReportParameter(&quot;Status&quot;, &quot;Test&quot;));<br> parameters.Add(new ReportParameter(&quot;ID&quot;, &quot;2&quot;));<br> parameters.Add(new ReportParameter(&quot;testID&quot;, &quot;1&quot;));<br> parameters.Add(new ReportParameter(&quot;UserID&quot;, &quot;userid&quot;));<br> rptViewer.SizeToReportContent = true;<br> rptViewer.AsyncRendering = false;<br> rptViewer.ServerReport.SetParameters(parameters);<br> rptViewer.ServerReport.Refresh();</p> <p>Please help. &nbsp;Thanks</p> 2012-05-10T20:30:06-04:004982844http://forums.asp.net/p/1802508/4982844.aspx/1?Re+ReportViewer+Report+is+not+loading+How+to+run+a+report+without+having+to+click+on+the+View+Report+button+Re: ReportViewer: Report is not loading/How to run a report without having to click on the View Report button? <p>For the first question, Install Report viewer on the machine the application is hosted on, or in the machine from where the application is running, you will be able to see the report.&nbsp;</p> <p>Second, to run the report without clicking on the View Report button, You need to give default values to all the parameters.&nbsp;</p> <p><strong>Way to set the default value for parameter :</strong></p> <p><strong><br> </strong>- Open the report parameter, in that you will be able to see the available values and default values.</p> <p>- Provide the default value as per your query. ( Else mention the same as in the available values ) but in the default value only value of the parameter will be considered.&nbsp;</p> <p>- save and run the report.&nbsp;</p> <p>For your additional help :&nbsp;<a href="http://www.venkateswarlu.co.in/BI/ssrs/Default_Values_for_Parameters.aspx">http://www.venkateswarlu.co.in/BI/ssrs/Default_Values_for_Parameters.aspx</a></p> <p></p> 2012-05-16T06:06:23-04:00