Jump to content
Changes to the Jaspersoft community edition download ×

Prevent group footer starting new page?


Recommended Posts

By: Adrian Jackson - iapetus

Prevent group footer starting new page?

2003-04-08 08:44

I'm sure I'm missing something obvious, but is there any way to prevent the group footer from starting a new page? If the group footer would normally be on its own at the start of the new page, then I'd rather bring one of the lines from the end of the previous page onto the new page as well.

 

On a related note, is there any way to get a text field to not display duplicate entries *except* as the first detail row on a new page?

 

 

 

 

By: Teodor Danciu - teodord

RE: Prevent group footer starting new page?

2003-04-08 12:13

 

Hi,

 

For the second issue, use

isPrintRepeatedValues="false" for you text field.

 

For the first one, I'm afraid this is a tricky one.

You have to know beforehand how many rows

there are in your group to be able to decide

to transfer some of them to the next page,

so that the group footer does not get lonely.

 

Note that page breaks can be introduced only

using the isStartNewPage="true" at group level.

So at least a special dummy groups has to be

introduced. Very tricky... but doable...

 

Thank you,

Teodor

 

 

 

 

 

By: Adrian Jackson - iapetus

RE: Prevent group footer starting new page?

2003-04-08 16:46

The second one isn't quite that easy, I'm afraid. ;)

 

I've already got isPrintRepeatedValues="false" in there. This does half of what I want, and doesn't print repeated values. But I *do* want to see those values when they appear in the first row of a page, so that I don't have to flip back to the last page of a printed report to see what I'm looking at. Is there any way to find out whether a row is the first one on a page? If there is, then there's a simple (if slightly messy) solution - use two fields, one of which has isPrintRepeatedValues="true" and prints only on the first line of each page, and one of which has isPrintRepeatedValues="false" and prints on every line *except* the first of each page.

 

 

 

 

By: Teodor Danciu - teodord

RE: Prevent group footer starting new page?

2003-04-08 20:44

 

Hi,

 

Have you tried isPrintInFirstWholeBand="true"?

Check the "Quick Reference" for details.

 

Thank you,

Teodor

 

 

 

 

 

By: Adrian Jackson - iapetus

RE: Prevent group footer starting new page?

2003-04-09 03:41

Thanks for the help: almost there now. :) This works in most cases, but where a band from the previous page overflows onto the next page (which I'd actually like to avoid if possible) the first *whole* band still doesn't display the field. Is this a bug, or the intended functionality?

Link to comment
Share on other sites

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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...