Click here to Skip to main content
Click here to Skip to main content

Tagged as

Multiple Reports with a single Report Viewer Control

, 17 Jun 2008 CPOL
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

Comments and Discussions

Questionerror is comming PinmemberMember 1103596912-Nov-14 2:16 
Bugmy vote of 1 Pinmembersebbod12-Sep-14 5:08 
QuestionUseless code :( PinmemberHameed Tajik29-Apr-14 4:17 
QuestionMultiple Reports Pinmemberaakhan31422-Aug-13 20:15 
QuestionRefresh? PinmemberMember 22751341-Aug-13 10:29 
QuestionThanks. Just what I needed PinmemberMember 22751341-Aug-13 10:15 
GeneralMy vote of 5 PinmemberMember 1017901131-Jul-13 0:44 
GeneralMy vote of 3 PinmemberABDUL QADER FAROOQI14-Feb-13 23:41 
GeneralMy vote of 1 PinmemberSeriketZu6-Dec-12 18:01 
QuestionMy vote of 0 (that's a ZERO) PinmemberVBForever2-Mar-12 13:24 
AnswerRe: My vote of 0 (that's a ZERO) PinmemberGeoff Gariepy31-May-12 6:50 
AnswerRe: My vote of 0 (that's a ZERO) PinmemberGurpreet11127-Aug-12 18:25 
GeneralMy vote of 1 Pinmemberrzl207063-Aug-11 22:44 
Generaluse of multiple reports.rdlc files into a single reportviewer. PinmemberMember 783314213-Apr-11 0:55 
GeneralHelped me PinmemberMaultier4-Mar-11 3:53 
GeneralMy vote of 1 PinmemberMember 206038117-Feb-11 5:45 
GeneralMutiple Reports in Single ReportViewer PinmemberMember 83070526-Jan-09 18:58 
GeneralRe: Mutiple Reports in Single ReportViewer PinmemberGurpreet11116-Feb-09 20:26 
QuestionCan we subscribe the server side report through code? PinmemberPrashant.IGT15-Dec-08 0:20 
Questionhow to show multipal reports on reportviewer at a time Pinmembershashank2107714-Oct-08 22:21 
GeneralProblem [modified] PinmemberTheCrow754-Sep-08 6:12 
QuestionHow do Pinmembervb_buddy7-Aug-08 3:03 
AnswerRe: How do PinmemberGurpreet1112-Sep-08 0:12 
GeneralRe: How do Pinmembersuusaa19-Oct-14 23:13 

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
Web04 | 2.8.150414.1 | Last Updated 17 Jun 2008
Article Copyright 2008 by Gurpreet111
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid