Nested Groups and Page Breaks
Nested Groups and Page Breaks
Hi,
I have a report with two nested groups (Group2 nested within Group1) and I want a page break on each header for each of the two groups. I have NewPageBefore set to true and SkipFirst set to true for each GroupHeaderBand. The problem is that for each header in Group1 after the first, I get a blank page with just that header, since the next row is a header from Group2 that has NewPageBefore set to true.
Is there a way to skip the first page break in Group2 for each iteration of Group1? The SkipFirst property only skips the page break for the first entry from the database.
I have a report with two nested groups (Group2 nested within Group1) and I want a page break on each header for each of the two groups. I have NewPageBefore set to true and SkipFirst set to true for each GroupHeaderBand. The problem is that for each header in Group1 after the first, I get a blank page with just that header, since the next row is a header from Group2 that has NewPageBefore set to true.
Is there a way to skip the first page break in Group2 for each iteration of Group1? The SkipFirst property only skips the page break for the first entry from the database.
Re: Nested Groups and Page Breaks
Hello,
Please send us your report with test data for analysis.
Thank you.
Please send us your report with test data for analysis.
Thank you.
Re: Nested Groups and Page Breaks
I have a attached my report. Apologies for the delay. Fund is the outer group, and account type (revenue, expense) is the inner group. On page 11, I have a new fund (101) and I get a nearly blank page because the report inserts a new page before the first account type (revenue). I want the page breaks in between account types but not for the first one for each fund.
- Attachments
-
- page break test.pdf
- report
- (168.22 KiB) Downloaded 202 times
Re: Nested Groups and Page Breaks
Hello.
Sorry, but we need to see your report template with sample data.
Thank you.
Sorry, but we need to see your report template with sample data.
Thank you.
Re: Nested Groups and Page Breaks
Hi. We generate this report using the .NET api within a large application so it is tough to extract the exact definition. I attached the .mrt file result of report.Save() after the report compiles, and the output of the report run on some test data from our db. The issue described in the original post occurs on page 3.
I hope this is enough to diagnose the problem.
I hope this is enough to diagnose the problem.
- Attachments
-
- Definition.mrt
- Report.Save()
- (66.51 KiB) Downloaded 181 times
-
- Page_Break_Issue.pdf
- (110.95 KiB) Downloaded 161 times
Re: Nested Groups and Page Breaks
Hello.
Sorry, but we can't reproduce the issue because we don't have data for the report.
Please, try to use the Before Print event of the Group Header instead of the New Page Before property.
You could check there if you need to add page break or not and use next method there:
Thank you.
Sorry, but we can't reproduce the issue because we don't have data for the report.
Please, try to use the Before Print event of the Group Header instead of the New Page Before property.
You could check there if you need to add page break or not and use next method there:
Code: Select all
Engine.NewPage();