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

Pagebreak on subreport

4 Answers 643 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mojzeš
Top achievements
Rank 1
Mojzeš asked on 29 May 2012, 08:34 AM
Hei,

I'm working on a telerik report in which i add  subreports dynamicalWhen a subreport has a lot of data such that it will not fit into the remaining area of the current page the program inserts a page break leaving a lot of white space. I have set the page break to none and keep together to false but it doesn't help.

4 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 29 May 2012, 05:02 PM
Hi Mojzeš,

Please find attached  simple report definitions, where only the SubReport Item's KeepTogether property is set to False. As you will see, the sub report items are not moved to the next page if they do not fit in the current one.

Keep in mind that the report viewers show the report in Interactive view by default, but you should observe the report in the Print Preview. For more information check the Interactive vs. Print Layout help article.

All the best,
Petio Petkov
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Mojzeš
Top achievements
Rank 1
answered on 29 May 2012, 07:42 PM
The sub report items are not moved to the next page if they do not fit in the current one.

When they do not fit in the current page, i want that they fill the page to the end and everything
 what stay on next page. Is this posible?
0
Mojzeš
Top achievements
Rank 1
answered on 30 May 2012, 09:40 AM
Can you please look in my code and see if the problem lies there.

https://www.dropbox.com/s/lqbezz2x5zvuyg1/KosovniOdpadki.zip
0
Petio Petkov
Telerik team
answered on 01 Jun 2012, 11:30 AM
Hi Mojzeš,

Thank you for the provided solution. The issue occurs because of the nested table which is inside a row of the parent table and it cannot break, so it begins on a new page. With this layout (nested tables) this cannot be avoided.
We would suggest to change the layout of the application so it doesn't use nested tables. Instead, use nested groups (you can keep the most inner table) and transform the outer table into group. 

Kind regards,
Petio Petkov
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Mojzeš
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Mojzeš
Top achievements
Rank 1
Share this question
or