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?
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?