Jump to content

Page X of Y


2006 IR Open Discussion

Recommended Posts

By: Carl.Li - carl_li

Page X of Y

2005-09-14 03:29

It's the first time for me to use iReport. How to add "Page X of Y" to the page footer of the report? Thanks!

 

 

By: sangar_g - sangar_g

RE: Page X of Y

2005-09-16 05:11

Hi carl,

 

Use the variable PAGE_NUMBER (data type : Integer ) in both X & Y positions.

 

For X, choose the evaluation time as 'Now' and

For Y, choose the evaluation time as 'Report'

 

thats all.

 

Regs,

Sangar_G.

 

 

 

By: pubDispName - mellino

RE: Page X of Y

2005-11-04 08:41

And how to put the total pages number in a variable? and pass it to a subreport?

 

 

By: Remo Fritzsche - remofritzsche

RE: Page X of Y

2006-02-16 06:34

yes, i've the same problem. i want to make an expression as follows:

 

new Boolean($V{CURRENT_PAGE_NUMBER} != 1)

 

(print a specific band only if the number of the current page not equals 1)

 

but this example won't run.

 

 

By: Giulio Toffoli - gt78

RE: Page X of Y

2006-02-20 10:03

 

Question 1: And how to put the total pages number in a variable?

 

You can't. The total pages number is the value of the builtin variable PAGE_COUNT.

You can print using a textfield with evaluation time = report.

 

Question 2: and pass it to a subreport?

 

If you don't have yet reached the end of the report is no possible to know the number of pages that will be generated. Anyway you have access only to the current page number.

 

Question 3: print a specific band only if the number of the current page not equals 1

 

new Boolean($V{CURRENT_PAGE_NUMBER} != null && $V{CURRENT_PAGE_NUMBER}.intValue() > 1)

 

Giulio

 

 

 

 

 

 

 

By: David Ender - degc

RE: Page X of Y

2006-03-27 08:43

Hi,

 

I want to use the same page header/footer for all of my reports. This makes the change management more efficient.

 

So what I did was to create two subreports (one as page header and one as footer) and every report has as its header/footer these subreports.

 

What I have learned so far, "page X of Y" wont work if it is located in the subreport of page footer. - What would be the work around?

Post edited by: tcloonan, at: 2006/09/02 10:31

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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