ReportBook only shows first report.

5 posts, 0 answers
  1. Peter
    Peter avatar
    10 posts
    Member since:
    Sep 2012

    Posted 22 Feb 2012 Link to this post

    I have created code to add two reports to a reportbook.
    (reports are dummy reports only with a textbox)

    ReportBook reportBook = new ReportBook();
    reportBook.Reports.Add(new dummy2());
    reportBook.Reports.Add(new dummy());
     
    AsitoReporting.Report = reportBook;
    AsitoReporting.Visible = true;
    AsitoReporting.DataBind();

    Only the first added report is shown in the reportviewer (asitoreporting).
    Which code is needed to show all added reports?

  2. Peter
    Peter avatar
    10 posts
    Member since:
    Sep 2012

    Posted 24 Feb 2012 Link to this post

    The problem is 'sort of' solved.

    The HTML viewer shows only the first report, but an export to PDF renders all the reports.
    This is a small step, but as a solution it is not acceptible. I need the complete report in the HTML viewer...

    Any idea's?

    btw, were using Telerik Reporting Q1 2012

  3. Steve
    Admin
    Steve avatar
    10942 posts
    Member since:
    May 2014

    Posted 27 Feb 2012 Link to this post

    Hi Peter,

    We were not able to reproduce such a problem. As you can see from the online Report Book demo report, all reports in the book are shown correctly in the web report viewer. The code for the Report Book demo report is very much the same as the one you have posted.
    Can you elaborate what do you mean when you say "The HTML viewer shows only the first report". Is it the fact that you only see the first report in the first page? If so, this is expected and noted in the Report Book help article: Reports are displayed in the order they were added to the report book, each report starting on a new page.

    Regards,
    Steve
    the Telerik team

    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.

  4. Raja
    Raja avatar
    27 posts
    Member since:
    Oct 2013

    Posted 26 Mar Link to this post

    I have the same problem. 


    Telerik.Reporting.ReportBook reportBook = new Telerik.Reporting.ReportBook();
     reportBook.Reports.Add(new Summary());
     reportBook.Reports.Add(new Study());
     
    ReportViewer1.ReportSource = reportBook;

    Also tried other way to bind the report source as above approach to assign the source is obsolete.

    Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
     instanceReportSource.ReportDocument = reportBook;
     
     ReportViewer1.ReportSource = instanceReportSource;


    in both ways it shows only Summary report in the viewer... how can navigate to Study report or how can get the link on the lesft side as shown in the demo? How can down load the sample code?

  5. Glenn
    Glenn avatar
    12 posts
    Member since:
    Jul 2012

    Posted 27 Mar in reply to Raja Link to this post

    "how can navigate to Study report or how can get the link on the lesft side as shown in the demo" is the document map feature.  You need to assign your report's DocumentMapText to the value you want to display and make sure the DocumentMap button is visible on your toolbar,

    report.DocumentMapText = "My Report";

    As far as the other with the ReportBook are you not seeing navigation controls?  You should be seeing navigation controls that allow you to switch between reports; in code there is a GoToPage where you can tell the viewer to start on this page (report).  With reportViewers using Reportbooks, your navigation controls navigate to the next report, not next page, also, if you want to see the actual page numbers, try changing your view from interactive view to print preview.

    I hope this helps.

    Glenn

Back to Top