In-line sub-reports push spacing out on main report

2 posts, 0 answers
  1. Mark
    Mark avatar
    2 posts
    Member since:
    Oct 2012

    Posted 25 Jan 2013 Link to this post

    I'm implementing several reports that have sub-reports (for many-to-one relations). Originally I designed the sub-reports as separate .trdx files and linked them; unfortunately I need to have the sub-reports in-line in the xml code of the main report for them to work within our application.

    When they're initially laid out as referenced files the spacing is fine; once I drop the code in line the right margins of the report are pushed out. I verified the sizes are correct for both the sub-reports and the layout panels I used (again, it previewed fine when the sub-reports were referenced files) and that there was no extra padding or margin information. It's clear that this is being caused by the sub-reports as the main design area (where the sub-reports are) is pushed out but the header and footer (which contain no sub-reports) are the correct width.

    The only thing I could think of is that the sub-reports are inheriting margin information from the main report; could you verify if this is the case? If so, how can I prevent this? (i.e., can I insert margin information at the end of the sub-report that will override the inherited margins?). If margin information is not inherited by the sub-reports, can you suggest a cause and fix?
  2. Stef
    Stef avatar
    2914 posts

    Posted 30 Jan 2013 Link to this post

    Hi Mark,

    It should not matter whether the sub report is a referenced file or is set inline in the main report. The behavior should be the same. One way of finding the problem is to set background color and borders of the main and sub-report sections in order to see how they are laid out. If this suggestion does not help, please open a support ticket and send us the report definitions which exhibit the issue so that we can review them locally.

    All the best,
    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 R3 2016 release webinar banner
Back to Top