Showing multiple reports (.rdl) in a single report viewer control

Last post 11-09-2009 1:47 AM by Zong-Qing Li - MSFT. 4 replies.

Sort Posts:

  • Showing multiple reports (.rdl) in a single report viewer control

    11-06-2009, 12:22 AM
    • Member
      215 point Member
    • nirman.doshi
    • Member since 07-07-2009, 8:07 AM
    • Vadodara
    • Posts 64

    Hi friends,

    I need your assistance here.

    I want to display two reports in a same page (ideally, single report viewer control).

    My reports are developed in SQL Server Reporting Services (.rdl)


    Kindly tell me if any more information is required here.

    Nirman Doshi
    Software Developer
    Vadodara, India
  • Re: Showing multiple reports (.rdl) in a single report viewer control

    11-06-2009, 3:49 AM
    • Participant
      1,248 point Participant
    • linick
    • Member since 10-27-2009, 10:04 AM
    • Trivandrum
    • Posts 242

    Hi,


    reportViewer1.Reset();
    reportViewer1.LocalReport.ReportEmbeddedResource = "ReportViewer.Report2.rdlc";
    this.reportViewer1.RefreshReport();


    You can add as many reports to a single reportviewer like this.

    Lini C K

    ========================================================================
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Showing multiple reports (.rdl) in a single report viewer control

    11-06-2009, 7:23 AM
    • Member
      215 point Member
    • nirman.doshi
    • Member since 07-07-2009, 8:07 AM
    • Vadodara
    • Posts 64

    I tried out this already.. but it doesnt seem working for ".rdlc" files.

    even i dont find a method like "RefreshReport" for a report viewer control

    Nirman Doshi
    Software Developer
    Vadodara, India
  • Re: Showing multiple reports (.rdl) in a single report viewer control

    11-08-2009, 11:03 AM
    • Member
      122 point Member
    • becklery
    • Member since 04-12-2009, 2:50 AM
    • Posts 56
    RAQ Report: Web-based Excel-like Java reporting tool
  • Re: Showing multiple reports (.rdl) in a single report viewer control

    11-09-2009, 1:47 AM
    Answer

    Hi,

    For all I know, ReportEmbeddedResource only supports for local report. So in this scenario, if there is no relation in that two reports, please try to use two ReportViewer controls to show the records. If not, please use the sub report control to show the second report.

     

     

    Please feel free to let me know if I’ve misunderstood anything.

     

    Sincerely,
    Zong-Qing Li
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
Page 1 of 1 (5 items)