Quantcast
Channel: Visual Studio Report Controls Forum
Viewing all articles
Browse latest Browse all 519

VS2008 windows form ReportViewr and SSRS 2008R2

$
0
0

Hi,

In my VS2008 Windows form project, I have the ReportView1 on Form1.
I have a Button1 for getting the report on SSRS 2008.
(http://ssrsServer/Reports/Pages/Report.aspx?ItemPath=%2fSampleFolder%2fReport1)
The code for the click event for Button1 is as follows:

reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote;
ServerReport serverReport = reportViewer1.ServerReport;
serverReport.ReportServerUrl = new Uri("http://ssrsServer/ReportServer");
serverReport.ReportPath = "/SampleFolder/Report1";
reportViewer1.ServerReport.Refresh();

However, when I clicked the Button1, ther Refresh() didn't bring out the Report1 from the ssrsServer.
How do I fix this problem?
Thanks.

Jason


Viewing all articles
Browse latest Browse all 519

Trending Articles



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