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

Cannot add Report to the report book control - urgent

3 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sindu
Top achievements
Rank 1
Sindu asked on 01 Feb 2012, 10:11 AM

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.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 02 Feb 2012, 02:59 PM
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!

0
Terrina
Top achievements
Rank 1
answered on 04 Dec 2014, 02:59 PM
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.
0
Stef
Telerik team
answered on 08 Dec 2014, 01:41 PM
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.

 
Tags
General Discussions
Asked by
Sindu
Top achievements
Rank 1
Answers by
Steve
Telerik team
Terrina
Top achievements
Rank 1
Stef
Telerik team
Share this question
or