Combine five reports

3 posts, 1 answers
  1. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 25 Sep 2014 Link to this post

    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
  2. Answer
    Stef
    Admin
    Stef avatar
    3036 posts

    Posted 29 Sep 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 30 Sep 2014 Link to this post

    Thanks for your time!

    Regards,
    Shakti
Back to Top