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

Paging with Subreports

1 Answer 192 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard Brown
Top achievements
Rank 2
Richard Brown asked on 24 Sep 2007, 05:23 PM
I have a requirement to generate a report that is actually 13 subreports in a single conatiner report.  Is there a way to force paging at the beginning of selected subreports.  I am using Report Headers in the subreports but setting the pagebreak on those headers does not provide paging.

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 25 Sep 2007, 09:11 AM
Hi Richard,

To produce such a report you can use a little workaround - put all your subreports into a detail section of a master report with a dummy data source (the count of rows must be equal to the count of subreports). Then set the subreports' Visible property in their ItemDataBinding event handlers (see file MasterReport.vb from attached sample). Please note how we use rowCounter to keep track which subreport to make visible.

Attached you can find a sample project with four sub reports and a master report for your case.
 

All the best,
Ivan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Richard Brown
Top achievements
Rank 2
Answers by
Ivan
Telerik team
Share this question
or