Jump to content
Changes to the Jaspersoft community edition download ×

Problem with page numbers in groups


Recommended Posts

By: Krzysiek - krzysieks

Problem with page numbers in groups

2002-11-18 05:15

Hi everybody,

 

I want to have page numbering seperate for each group (starting from1 to page count in the group) and to display: Page i of GroupPageCount in the footer of each page in the report (in fact each group is a seprete report and all of them have to be printed as one document).

 

I don't know how to get page counts for each group because when a group changes I can get count for previous group not for current and at the end of the report I can't tell for which group I need a count because the groupexpression is than evaluated to the last group.

 

I would need to evaluate textFieldExpression (let say a method call) at the end of the report but to have a posibility to pass an argument to the method which would be evaluated at group processing time (when I have corrent information about the group for which I need page count).

 

Thanks for any help !

 

Krzysiek

 

 

By: Teodor Danciu - teodord

RE: Problem with page numbers in groups

2002-11-18 12:54

 

Hi,

 

The groups have an attribute called

isResetPageNumber that will help you reset

the PAGE_NUMBER variable to 1 every time

a specific group changes.

 

Have you tried the evaluationTime="Group"

and evaluationGroup attributes to display

the value of the PAGE_NUMBER variable when

the group end is reached? This would represent the

total number of pages of the group.

 

Check the provided samples to see how the total

number of pages is displayed on the page footer.

This should be the same with the total number

of pages for the group, if you alter the

evaluationTime attribute accordingly.

 

I hope this helps.

Teodor

 

 

 

By: Krzysiek - krzysieks

RE: Problem with page numbers in groups

2002-11-19 05:24

Hi,

 

This really helps in the situation when group headers and footers are small and only detail section overflows to a new page (the only problem is that isStretchWithOverflow attribute of textField does not work when evaluationTime="Group"; hight attribute of reportElement must be large enough).

 

In my sytation group headers and footers are large and the group footer overflows to a new page.

 

I have done a few tests and it looks that the last page number for the group is calculated as the last page number of the datail section for this group.

 

Mayby there is some tricky solution to my problem that I cound not find?

 

Thanks for help.

Krzysiek

 

 

By: Teodor Danciu - teodord

RE: Problem with page numbers in groups

2002-11-19 12:51

 

Hi,

 

I'm afraid you are approaching the library's limits

with your report designs.

:)

 

Teodor

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