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

Report with subreport breaks page sometimes

1 Answer 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 03 Feb 2014, 10:40 AM
We have a webapplication which generates an invoice for customers. For the invoice we have a report with a subreport in the detailsection.

When having a certain number of invoicelines (like 1 or 5) the subreport starts at the second page where we expect it to start on page 1. When increasing the number of items the report behaves correctly.

Any thoughts how we can make sure the invoice lines are starting at the first page?

I've attached three options

1 line PDF exported to images
5 lines PDF exported to images
50 lines PDF exported to images (just included 1st, 2nd and last page)

Here the difference is clear: 1 and 5 invoice lines are causing the subreport to start at the 2nd page, the 50 lines report works correctly.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 05 Feb 2014, 04:14 PM
Hello Rick,

We are not familiar with your report definition, but from our experience, it is likely that you have set the GroupKeepToghether property of the report to FirstDetail or All. For more information check the Understanding Pagination help article.
In this case, when you have 1 or 5 records in the report, the group content happens to be too large to be kept whole on the first page (because of the header which is taking space on the first page), but fits nicely in the second page. That is also the reason why it works normally with 50 records, which are too large to be kept together on any page, so a part of the records is left on the first page and the rest are placed on the following pages.

Try setting the GroupKeepTogether property to None and check if it fixes the issue.

If you are using a Table/Subreport item, then set the KeepTogether property to False and see if it makes any difference.

Regards,
Nasko
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Rick
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or