Click here to Skip to main content
11,629,481 members (67,109 online)
Click here to Skip to main content

Tagged as

Multiple Reports with a single Report Viewer Control

, 17 Jun 2008 CPOL 102.4K 6.5K 36
Rate this:
Please Sign up or sign in to vote.
Using this You can embed different reports to a single report viewer control


Single Report viewer control can be embedded with multiple Reports
Download the above file for the source code of this project.

Using the code

This code block demonstrates adding of 2 reports to a single report viewer control.
If you have an application in which you are displaying large data in reports and on the same page you need more than one report, instead of adding multiple report viewer controls for different reports. You can add reports one by one to a single report viewer control.

        //Add this code to embed a report at runtime
            reportViewer1.LocalReport.ReportEmbeddedResource = "ReportViewer.Report2.rdlc";
        //reportViewer1--> A Report Viewer Control
    //ReportViewer --> Name of the solution
    //Report2.rdlc --> Name of the report

Instead of adding a report to the control using the graphical user interface, add it during the runtime so that after reseting the report viewer control you can add more reports to it.

If any queries, post your comments, i will be glad to reply.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer Tarkia
India India
He works on with TARKIA

You may also be interested in...

Comments and Discussions

GeneralMy vote of 1 Pin
rzl207063-Aug-11 21:44
memberrzl207063-Aug-11 21:44 
Generaluse of multiple reports.rdlc files into a single reportviewer. Pin
Member 783314212-Apr-11 23:55
memberMember 783314212-Apr-11 23:55 
GeneralHelped me Pin
Maultier4-Mar-11 2:53
memberMaultier4-Mar-11 2:53 
GeneralMy vote of 1 Pin
Member 206038117-Feb-11 4:45
memberMember 206038117-Feb-11 4:45 
GeneralMutiple Reports in Single ReportViewer Pin
Member 83070526-Jan-09 17:58
memberMember 83070526-Jan-09 17:58 
GeneralRe: Mutiple Reports in Single ReportViewer Pin
Gurpreet11116-Feb-09 19:26
memberGurpreet11116-Feb-09 19:26 
QuestionCan we subscribe the server side report through code? Pin
Prashant.IGT14-Dec-08 23:20
memberPrashant.IGT14-Dec-08 23:20 
Hi Gurpreet,

I have uploaded several reports on the Report server and calling them from a web application (ASP.Net with VB.Net).
As you know about one of the features of Report server is to subscribe the report. I want to give this feature also to the user of the applications.
So is this possible to code in such a way that a user can subscribe report according to his/her schedule?


Prashant Pandey
Questionhow to show multipal reports on reportviewer at a time Pin
shashank2107714-Oct-08 21:21
membershashank2107714-Oct-08 21:21 
GeneralProblem [modified] Pin
TheCrow754-Sep-08 5:12
memberTheCrow754-Sep-08 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150723.1 | Last Updated 17 Jun 2008
Article Copyright 2008 by Gurpreet111
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid