Jump to content
We've recently updated our Privacy Statement, available here ×

Increment parameter and reset page number


agostinho

Recommended Posts

Good morning, I need to generate a book, where I must increase a parameter that contains its number and start the page number, this is based on a parameter that contains the limit of pages that a book must have, I am not using sub-reports, just group based on a date. Is there a way I can do this?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

  • 3 weeks later...

Hello agostinho, 

in any jasper report there is the bundled variable $V{PAGE_NUMBER}  that can be used to track page numbers.

Specifically:

 

You can set the $V{PAGE_NUMBER}'s print when expression to "REPORT" when you have to display total pages and,

$V{PAGE_NUMBER}'s print when expression to "NOW" when you have to display current page number.

Link to comment
Share on other sites

Thanks for the return, I need to reboot the page_number when the variable page_number is equal to 200 for example; I would have a variable V_LIVRO = x, when page_number reaches 200, I need to restart page_numer = 1 and V_LIVRO = x+ 1;

Edited by agostinho
Link to comment
Share on other sites

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