Jump to content
JasperReports Library 7.0 is now available ×

GroupFooter and isSplitAllowed


Recommended Posts

By: olivier bregeas - bregeras

GroupFooter and isSplitAllowed

2005-01-12 01:30

Hi all, and happy new year.

 

I would like to know why the graoup footer doesn't split even if the isSplitallowed is set on the band ?

 

It would be normal to split this band if this attribute is set to true.

 

I know that I can split my groupfooter by split it in many nested groups.

It just a tougth.

 

 

 

By: olivier bregeas - bregeras

RE: GroupFooter and isSplitAllowed

2005-01-12 23:48

After some tests, I have changed this in the fillGroupFooter method in JRVerticalFiller (In only use this kind of fill)

 

original :

 

if (groupFooter.getHeight() > columnFooterOffsetY - offsetY)

{

fillColumnBreak(evaluation, evaluation);

}

 

 

modified :

if ((groupFooter.getHeight() > columnFooterOffsetY - offsetY) && !groupFooter.isSplitAllowed())

{

fillColumnBreak(evaluation, evaluation);

}

 

 

Does it could create side effects ?

Now, if I put isSplitAllowed attribut in the band of my groupFooter, I can choose if it has to print in one block, maybe on a new page, or if it has to start at the end of one page and continue and an other one.

 

I hope it will heklp someone and maybe integrated in a new release.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...