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

wub66

Members
  • Posts

    1
  • Joined

  • Last visited

wub66's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, I have a problem that sounds simular to https://community.jaspersoft.com/questions/514622/print-when-last-page but is a bit different. My document includes a barcode (not a Jaspersoft barcode but a custom font that results in a barcode), a part of the barcode is based on the following rules: Firstpage and not the only page in the document = "01"Firstpage that is also the last page in the document = "11"Lastpage = "10"Page in the middle of the document = "00"As you can see based on the rules I need to know the current page and the totalpage count (in order to determine if we are working on the lastpage or not) both on the same time. The extra difficulty is that I don't insert the text 01, 11, 10 or 00 directly, I call a java function that will provide a special character based on the above values. For example the value 00 = "!" and that string printed as that font results on a barcode with the '00' value below it, because there are 99 possible characters that can be used inside that font I created the java function. Therefor I'm looking for a way to provide the current page number and the total amount of pages (or a boolean value saying lastpage true/false) into a custom function. Could somebody help me with this problem? Cheers, Rick
×
×
  • Create New...