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

Best practice advice needed

4 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 1
Andy Green asked on 12 Oct 2009, 08:53 AM
Hi
 I need to build a report comprising several diferent pages but all based on the same underlying data. For example the first page would be a summary of all data, the next few pages would be detailed information thqt was used to create the summary, then some text pages displaying written text ect.

I was going down the route of creating a separate report for each and using the ReportBook to bring them all together.

I'm thinking I could also do this with sub reports for each of the sections, which would be the prefered approach.

Andy

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 13 Oct 2009, 02:35 PM
Hi Andy Green,

Contrary to popular believe, the subreport are not used only when you need to create master-detail relation, but simply as a container item in order to separate your data as well. So whichever approach you find most feasible for your scenario would work.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Andy Green
Top achievements
Rank 1
answered on 13 Oct 2009, 02:45 PM
Thanks.

I'm currently going down the Report Book route, but I hiave some issues. Assuming my other posts can help me out I'll stick with it.
Thanks for confirming the way Sub Reports can be used.

Andy
0
Brendan Casey
Top achievements
Rank 1
answered on 19 May 2010, 08:20 PM
Hi -

I'm also looking for best practice advice.  I have a report that is essentially an empty container for two subreports.  I have been able to create/run these at design time without a problem, passing report parameters to the subreports successfully.  However at runtime the main report is displayed, but there is no data for the subreports -- they appear to be missing altogether.

Is there a better approach I should be using?  Essentially I have the scenario described below:

Main Report:
Parameters (ClientID, StartDate, EndDate)

Subreport 1
Parameters (ClientID.Value = Parameters.ClientID.Value, StartDate.Value = Parameters.StartDate.Value, EndDate.Value = Parameters.EndDate.Value)

Subreport 2
Parameters (ClientID.Value = Parameters.ClientID.Value, StartDate.Value = Parameters.StartDate.Value, EndDate.Value = Parameters.EndDate.Value)

Both subreports are using the same parameters, and are contained in the Main Report's header section.  Is there a better way to do this?

Thanks in advance,
-Brendan
0
Peter
Telerik team
answered on 25 May 2010, 11:42 AM
Hi Brendan,

Please check the Creating Master-Detail Reports Using SubReports help article for more info about your scenario and the Invoice demo report, which shows the approach from the article in action.

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Andy Green
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andy Green
Top achievements
Rank 1
Brendan Casey
Top achievements
Rank 1
Peter
Telerik team
Share this question
or