Cannot add Report to the report book control - urgent

4 posts, 0 answers
  1. Sindu
    Sindu avatar
    46 posts
    Member since:
    Oct 2011

    Posted 01 Feb 2012 Link to this post


    hi,

    I have created a report using telerik ..
    my code is given below.

    Report7

     

     

    objreport1 = new Report7();

     


    and I have created a Reportbook control .its id is Reportbookcontrol1.
    after that I assigned report to the report  to the report book control like

    ReportBookControl1.Reports.Add(objreport1);

    then I got an error :

    The best overloaded method match for 'System.Collections.ObjectModel.Collection<Telerik.ReportViewer.WebForms.ReportInfo>.Add(Telerik.ReportViewer.WebForms.ReportInfo)' has some invalid arguments

    so I cannot view anything in reportviewer.
    so how to add my report to the reportbook control ?
    Please help me .it is urgent

    thanks
    sindu.

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 02 Feb 2012 Link to this post

    Hello Sindu,

    Your confusion comes from the fact that you mistake the ReportBook class with the ReportBookControl class. The latter is meant to be used only if you are using the ReportBook control to add reports through the designer. If you are to add those programmatically, you do not need the ReportBookControl as you can work directly with the ReportBook class and assign it to the ReportViewer. For more info see the Creating a Report Book at run-time section in the Walk-Through for the Web report viewer help article.

    Greetings,
    Steve
    the Telerik team

    Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

  3. Terrina
    Terrina avatar
    11 posts
    Member since:
    Mar 2013

    Posted 04 Dec 2014 in reply to Steve Link to this post

    I need to create a report book, however the link to this particular walkthrough is now dead.  When I go to the reporting help site, there is only a walk-through for creating a report book in a WPF application, whereas I need to do it for asp.net.
  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 08 Dec 2014 Link to this post

    Hello Terrina,

    Please check the local ReportBook demo, installed by default under
    C:\Program Files (x86)\Telerik\Reporting <VERSION>\Examples. More details about the ReportBook feature are available in the corresponding help section - Report Book.


    Let us know if you need any further help.

    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.

     
Back to Top