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

How to split a Subreport on multiple pages

1 Answer 298 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marius
Top achievements
Rank 1
Marius asked on 26 Jun 2009, 12:01 PM
Goodmorning,

I have a problem with a report involving a subreport section containing some data picked up from a stored procedure.
The subreport data consists of a kind of "invoice detail" section (some items with their description, prices etc).

The problem is that when there are lot of items in the detail section of the subreport, the subreport itself does not maintain the limits of the subreport section declared in the master page (I've already set the KeepTogether property of the subreport to "False") and keeps "growing" in order to contain all the data. This way the data AFTER the subreport section goes on the next page, instead of having a new page with the remaining of the subreport data.

So, the main problem is hot to keep a subreport within the bounds declared in the subreport size?

Thank you,
Best regards,
Marius.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 Jun 2009, 11:38 AM
Hello Marius,

There is no such thing as subreport item bounds. The subreport item (as any other container item) would stretch itself to fit its children i.e. in this case the report used as subreport. So in this line of thoughts, you need to alter the report width/height itself in order to avoid "growing" unexpectedly. KeepTogether property would not be respected in Html rendering (more info here) and for the page oriented formats it would mean that if there is not enough space to fit the whole item on the current page it would not try to fit on the second, but would transfer the data to the second page directly.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Marius
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or