Best practice advice needed

5 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 12 Oct 2009 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 13 Oct 2009 Link to this post

    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.
  3. DevCraft banner
  4. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 13 Oct 2009 Link to this post

    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
  5. Brendan Casey
    Brendan Casey avatar
    5 posts
    Member since:
    Apr 2010

    Posted 19 May 2010 Link to this post

    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
  6. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 25 May 2010 Link to this post

    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.
Back to Top
DevCraft banner