none
VS2008 windows form ReportViewr and SSRS 2008R2 RRS feed

  • Question

  • 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

    Thursday, November 22, 2012 6:39 AM

Answers