Click here to Skip to main content
13,804,051 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


38 bookmarked
Posted 17 Jun 2008
Licenced CPOL

Multiple Reports with a single Report Viewer Control

, 17 Jun 2008
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 3 Pin
memberABDUL QADER FAROOQI14-Feb-13 23:41 

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

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

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web03 | 2.8.181218.1 | Last Updated 17 Jun 2008
Article Copyright 2008 by Gurpreet111
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid