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

page break for group

3 Answers 1162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hoang
Top achievements
Rank 1
Hoang asked on 15 Sep 2017, 03:17 AM

Hi,

We need to know if there is any workaround for printing each Table Group on New page. Basically our Report Datasource is already bind and having Group with setting Page Break After in Group Footer.  Report contains a Table having different Datasource also having Grouping. Now it is required that each Table Group should appear on next Page addition to existing Report group. 

Please advise any way to address the requirement...

Thanks,

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 19 Sep 2017, 12:36 PM
Hello Hoang,

Page breaks can be inserted using PageBreak property which is supported by the report sections only. Table(CrossTab) item does not support it.
The Table item will break on pages according to the report's PageSettings, the size of the report sections/items and KeepTogether/PageBreak settings. For more detailed information about paging behavior check Understanding Pagination help article.

To be able to control page breaks, you can replace the Table item with separate TextBox items arranged in a similar layout and set the PageBreak property of Group Header(Group Footer) sections.

Another approach is to combine several reports each containing a table into a ReportBook. Each report in a ReportBook will start on a new page.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
George
Top achievements
Rank 1
answered on 16 Jan 2019, 08:21 AM
Can't I add a pageBreak before the subReport? I've tried adding it to the testReport but with no luck.
0
Silviya
Telerik team
answered on 21 Jan 2019, 08:04 AM
Hi George,

I noticed that you've opened a new forum post question on the same topic and provided more details there: https://www.telerik.com/forums/page-break-after-crosstab#Q205ECLDBE6MDsJ8pKGk6g.
But for our community, I'll post my answer here as well:

"It is best to avoid creating the reports dynamically. Due to the complex nature of the reports modifying its definition manually can lead to errors due to missing properties, incorrect positioning of the elements etc.
More considerations on this topic are provided in Modifying or Creating a report at Run-Time KB article.

Based on the information and the code snippet, it seems that the sub report areas overlaps with the master report areas as the report items in sub report are having hard-coded positions that are not considered with the layout of the master report.

To see which items overlap, you can serialize the report definition after it is created programmatically. This will allow opening the report created programmatically in the Report Designer, check its layout and see which items' properties need to be modified at run-time.

When report items are added dynamically it is harder to layout them correctly and position of each item must be calculated very carefully. In the Report Designer, you can see where each item is positioned and overlapping areas will be marked with an exclamation mark.

To provide you further suggestions, we would need to check the report definitions of report and sub report together with the custom code used for creating sub report.
Please attach a runnable demo reproducing the problematic output so we can test it locally."


Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Hoang
Top achievements
Rank 1
Answers by
Katia
Telerik team
George
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or