This is a migrated thread and some comments may be shown as answers.

Combine five reports

3 Answers 202 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 25 Sep 2014, 03:29 PM
Dear Admin,
There is a issue I want to combine give reports in asp.net webforums our plan was to use reoprtbook for it but seems reportbooks is not available for asp.net webforums
http://www.telerik.com/help/reporting/designing-reports-reportbook-web-viewer.html
can you please help me asap how to combine multiple reports in asp.net webforums.

Thanks,
Shakti

3 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 29 Sep 2014, 02:37 PM
Hello Shakti,

Please refer to the quote below:
You will need to create a ReportBook object, which gathers your reports. Then pass it to the ASP.NET ReportViewer via report source object. The example below is taken from our local demos installed by default under C:\Program Files (x86)\Telerik\Reporting <VERSION>\Examples.
 
  //create ReportBook
    [Description("A collection of Product-related reports")]
    public class MyReportBook : Telerik.Reporting.ReportBook
    {
        public ReportBook()
        {
            this.Reports.Add(new SalesByRegionDashboard());
            this.Reports.Add(new Dashboard());
 
 
 
            this.Reports[0].DocumentMapText = "Sales By Region";
            this.Reports[1].DocumentMapText = "Dashboard";
 
        }
    }
 
         //pass it to the viewer
    protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TypeReportSource reportSource = new TypeReportSource { TypeName=typeof(MyReportBook).AssemblyQualifiedName};
                this.ReportViewer1.ReportSource = reportSource;
               
            }
        }


Let us know if you have any further questions.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 30 Sep 2014, 05:00 AM
Thanks for your time!

Regards,
Shakti
0
Donald McLean
Top achievements
Rank 2
answered on 24 Apr 2019, 02:23 PM
Using a report book, is there anyway I can be done more dynamically, ie user selects a specific order and the form create the forms and use that to generate the report book and create it that way.
Tags
General Discussions
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Stef
Telerik team
Shakti SIngh Dulawat
Top achievements
Rank 1
Donald McLean
Top achievements
Rank 2
Share this question
or