Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

ReportViewerWebPart not working properly with GetParameters

$
0
0

I am programmatically adding a ReportViewerWebPart to an application page in SharePoint 2010.  I can get the report to render properly by setting the report path but when I do a ReportViewerWebPart.GetParameters() the report does not render.  I get the tool bar but then its just white where the report should be.

Here is an example

ReportViewerWebPart wp = new ReportViewerWebPart();
this.ChromeType = wp.ChromeType = PartChromeType.None;
wp.ToolBarMode = ToolBarDisplayMode.Full;

wp.ReportPath = string.Format("{0}/reports/{1}", defaultZoneURL, _reportToViewRelativeURL);

ReportParameterInfoCollection reportInfo = wp.GetParameters();

this.Controls.Add(wp);


Matt Klepeis


Viewing all articles
Browse latest Browse all 20764


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>