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

ReportBook only shows first report.

4 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 22 Feb 2012, 10:44 AM
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?

4 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 24 Feb 2012, 01:57 PM
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
0
Steve
Telerik team
answered on 27 Feb 2012, 11:28 AM
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.
0
Raja
Top achievements
Rank 1
answered on 26 Mar 2014, 05:54 PM
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?
0
Glenn
Top achievements
Rank 1
answered on 27 Mar 2014, 07:16 PM
"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
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Steve
Telerik team
Raja
Top achievements
Rank 1
Glenn
Top achievements
Rank 1
Share this question
or