Page 1 of 1

Nested Groups and Page Breaks

Posted: Thu Aug 27, 2015 9:17 pm
by pyotr09
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.

Re: Nested Groups and Page Breaks

Posted: Fri Aug 28, 2015 6:27 am
by Alex K.
Hello,

Please send us your report with test data for analysis.

Thank you.

Re: Nested Groups and Page Breaks

Posted: Thu Nov 12, 2015 5:38 pm
by pyotr09
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.

Re: Nested Groups and Page Breaks

Posted: Fri Nov 13, 2015 1:23 pm
by HighAley
Hello.

Sorry, but we need to see your report template with sample data.

Thank you.

Re: Nested Groups and Page Breaks

Posted: Thu Mar 17, 2016 10:45 pm
by pyotr09
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.

Re: Nested Groups and Page Breaks

Posted: Fri Mar 18, 2016 12:26 pm
by HighAley
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:

Code: Select all

Engine.NewPage();
Thank you.