[#10096] - Provide $V{CURRENT_PAGE} and $V{TOTAL_PAGES}

Category:
Feature request
Priority:
Normal
Status:
Acknowledged
Project: Severity:
Feature
Resolution:
Reopened
Component: Reproducibility:
Always
Assigned to:

Excuse my bad english.

We (and i think others) often use the "Page x of xx" pattern for our reports. Its always a litte bit tricky to place this pattern with the PAGE_NUMBER field. (Dispite the confusing with PAGE_COUNT for new users, who think PAGE_COUNT holds the total number of pages)

You need to place two fields with different computation. But this is difficult with localization.

It would be easiert to place a textfield like "Seite "+$V{CURRENT_PAGE}+" von "+$V{TOTAL_PAGES}

There is a other "trick" that can be used to place such a textfield:
https://community.jaspersoft.com/questions/521769/using-pagenumber-pagec...

But it is always a "trick".

So, I would suggest to provide the built-in variables CURRENT_PAGE and TOTAL_PAGES.

mwrekers's picture
Joined: Jun 23 2011 - 1:00am
Last seen: 1 year 7 months ago

4 Comments:

#1
  • Resolution:Open» No Change Required
  • Status:New» Resolved
  • Assigned:nobody» lucianc

Already available since 6.0.0 as MASTER_CURRENT_PAGE and MASTER_TOTAL_PAGES. Note that you'll need to use evaluationTime="Master" for the text fields.

A few more details at http://jasperreports.sourceforge.net/sample.reference/book/index.html

Regards,
Lucian

#2

Many thanks for the answer

In your reference link evalutionTime="Auto" is also mentioned but it is not working.

#3

You're right, it doesn't work with evaluationTime="Auto". That's something we'll need to look into.

#4
  • Resolution:No Change Required» Reopened
  • Status:Resolved» Acknowledged
Feedback
randomness