[#2751] - group bands doesnt respect "Start on a new page"

Category:
Bug report
Priority:
Normal
Status:
Feedback Requested
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
N/A
Assigned to:
0

Hi there,

This is for 4.1.2, let me know if its fixed in later versions. (couldnt find anything about it with search option)

in JRVerticalFiller.fillGroupHeader, engine checks if the group is flagged with "start on a new page" and also another variable called "newPage".

if ( (group.isStartNewPage() || group.isResetPageNumber()) && !isNewPage ) {
fillPageBreak(..);
}

isNewPage is set to true in filling page header.

however its only set to false in filling detail and group footers.

-Create a few dummy groups, second or later group header sections will not respect "start on a new page" property since "newpage" variable is true. (assuming another page is not created yet and there is still space in the page)

However, this is a group property, so it should be set to false after filling ANY group including "group header bands"

Setting newPage to false at the end of JRVerticalFiller.fillGroupHeader method fixes the issue.

Please let me know, current situation is not expected behaviour.

Thx..

theceday's picture
Joined: Mar 5 2010 - 4:05am
Last seen: 2 months 3 days ago

1 Comment:

#1
  • Status:New» Feedback Requested
  • Assigned:» teodord

Hi,

It works like this "by design". An inner group does not start a new page if the current page is already newly started by an outer group.
If you want a nested group to always start a new page, you should probably use a page break element at the top of its group header.

I hope this helps.
Teodor

Feedback
randomness