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

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

1 Answer 120 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 25 Jan 2013, 04:11 PM
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?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 30 Jan 2013, 04:00 PM
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,
Stef
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!

Tags
Report Designer (standalone)
Asked by
Mark
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or