Subreport in page footer

6 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 02 Jan 2013 Link to this post

    Why can't I add a subreport to the page footer?

    I have a need to make the page footers on all my reports the same, so I want to create a subreport and pass in the pagenumber\pagecount as parameters.

    When I try to add the subreport in vs2012 it throws a popup saying this isn't possible?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Jan 2013 Link to this post

    Hi Steve,

    There is no way to add SubReport or any data item in page section as we consider this conceptually wrong in the context of Telerik Report, because:
    • page sections are processed after the report data has been processed
    • page sections cannot grow i.e. if your SubReport grows more than the size of the page section, it would be cut off.
    • as report data source is not available at the time page sections are processed, you cannot filter the SubReport based on the report (main) data source.

    All these limitations, make the SubReport or any Data Item unusable for its original purpose. In order to make the page footer on all your reports the same, we suggest to inherit a base report that contains a "common" footer.

    Greetings,
    Steve
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  3. DevCraft banner
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 04 Jan 2013 Link to this post

    Okay so I made a base report which has nothing but a page footer on it...but previewing the report, or reportviewer isn't showing me the page footer?
  5. Steven
    Steven avatar
    81 posts
    Member since:
    Dec 2011

    Posted 06 Jan 2013 Link to this post

    I completed something like this by adding a ParentGroup to the DetailsSection with a group expression of "=True" so that a single group is created and then set PrintOnEveryPage on that group to true. My Report is not bound and I have a table within the detailSection that is.

    I did this with a SubReport so that it would appear right under the PageHeader, but the same can be done for the FooterSection with docking to appear above the footer.


    Steve
  6. Heradon
    Heradon avatar
    2 posts
    Member since:
    Apr 2013

    Posted 10 Apr 2013 Link to this post

    Hi. why subreport show the same  data in all groupfooter session?
    I have two group in my report. i use subreport to show group summary. my subreport show same data in all group.
    any idear?
  7. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 17 Apr 2013 Link to this post

    Hi Heradon,

    It depends on how you pass data to that sub report document and whether it is filtered correctly. If by any chance you use report parameters in the data driven events, assure you get their values from the processing equivalent, as shown in Using Report Events help article. Notice we refer to a SubReport item in a GroupFooter section.

    In order to provide more accurate suggestions, please elaborate on your reports definitions, data structure and how data is passed between reports.

    Greetings,
    Chavdar
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today

Back to Top
DevCraft banner