Subreport, how to do

7 posts, 0 answers
  1. Rubens
    Rubens avatar
    10 posts
    Member since:
    Jan 2013

    Posted 01 Sep 2014 Link to this post

    Hi, I have a simple doubt about Telerik Report, how can I add a subreport, is really necessary a separate file? I've been looking about this question and I saw that to add a datasource on the subreport is necessary to point to another report, this information proceeds?
  2. Rubens
    Rubens avatar
    10 posts
    Member since:
    Jan 2013

    Posted 02 Sep 2014 Link to this post

    Anyone can help?
  3. DevCraft banner
  4. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 04 Sep 2014 Link to this post

    Hi Rubens,

    If you use the approach described in the How to: Create a Master-Detail Report Using a SubReport Item help article, the data in the sub report will be filtered based on the data of the master report.

    You can also test the approach suggested in the How to bind the DataSource of a SubReport in the designer forum discussion to avoid using a separate data source component in the sub report.


    I hope the above information is helpful.

    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.

     
  5. Rubens
    Rubens avatar
    10 posts
    Member since:
    Jan 2013

    Posted 04 Sep 2014 in reply to Stef Link to this post

    Right, but I'm using Telerik Report Designer. How can I do to add a subreport without the necessity to create a new file what will serve like the subreport of the my main report? Did you understood my question?
  6. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 09 Sep 2014 Link to this post

    Hello Rubens,

    The Telerik Standalone Report Designer has the following options to load a sub-report:
    • Load report from URL or file
    • Load report from XML markup

    Check the attached screenshot for a demonstration of the user interface.

    The first option requires you to create a new file that will serve as a sub-report. The second option enables you to add a sub-report directly as XML string which contains the report definition.

    Regards,
    Nasko
    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.

     
  7. Candice
    Candice avatar
    7 posts
    Member since:
    Dec 2014

    Posted 18 Dec 2014 in reply to Nasko Link to this post

    Actually I also found this is one of the weak point you really need to improve compared with Fastreport and CrystalReport.when we insert a subreport ,we have to set a reportsource  for this subreport.The subreport is another independent report file that means we have to keep two report files on our computer.But in Fastreport and crystalreport,the subreport is intergrated into the masterreport.There's only one report we need to maintain.
  8. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 22 Dec 2014 Link to this post

    Hello Cao,

    When you use the second option from my previous reply "Load report from XML markup" the sub-report definition becomes integrated into the master report, just like you described.

    Regards,
    Nasko
    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.

     
Back to Top
DevCraft banner