Jump to content
JasperReports Library 7.0 is now available ×

page numbers in grouping


2004 IR Help

Recommended Posts

By: JAmol - jamol

page numbers in grouping

2005-11-08 03:56

hi

we are developing reports with Jasper APIs.

and we are facing problem in numbering of page when it is matter of grouping .

i.e when we want each group should display on new page and correspondingly page number should be changed.

 

we are using JRDesignTextField do display it and

set its property as setEvaluationTime(JRVariable.RESET_TYPE_GROUP);

for total no of pages.

 

but now if group data is of 2 pages then page no is displayed as 1 of 1 , 2 of 2 etc

 

I don't know what is wrong , kindly help me

 

thanks

JAmol

 

 

 

 

By: Teodor Danciu - teodord

RE: page numbers in grouping

2005-11-08 08:08

 

Hi,

 

What you need is explained here:

http://jasperreports.sourceforge.net/tips.tricks.html#pagenumber

 

Use evaluationTime="Group" for the text field displaying

the total number of pages for the current group.

 

I hope this helps.

Teodor

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: page numbers in grouping

2005-11-08 08:17

 

Hi,

 

Actually, your code should look like this:

 

setEvaluationTime(JRExpression.EVALUATION_TIME_GROUP)

 

setEvaluationGroup(myGroup)

 

I hope this helps.

Teodor

 

 

 

 

 

By: JAmol - jamol

RE: page numbers in grouping

2005-11-09 01:49

Thanks buddy ,

Page number is displaying properly as per need.

 

one more thing ,

I am new to jasper and need to work with Jasper APIs . Can you tell me where should I get proper information of these APIs.

 

regards,

JAmol

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