This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

jasper-PDF pagination problem

Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Long post but i want to explain the problem clearly so that i can get some help from you.

I am new to jasper.Trying to generate PDF for a webpage(TO provide printer friendly version in PDF to avoid browser dependencies).My problem is that some lines are missing while floating to next page.
How i am doing that?
I have around 70 elements on a webpage and the height of the Detail band is not sufficient to place all elements.So I am using group header and group footer so that I can place some of our detail elements on a special group header, some of them will probably remain on the detail section, and the rest could go on the group footer.i have started placing the elemets on Group Header ,and i expected the elements to flow(isSplit=true) to the next PDF page when they are not fit in current page.But when the end of the page is reached, subsequent elements are disappearing.In the PDF report i have attached,last line of the first page is

Name of regulatory authority of manager Rugulatroy Authority Value

The next line to be printed as a first line of the next page is

Please provide the licence number issued L1212122212121
by the
relevant regulatory authority

but this line is disappearing and the next line to be printed also missing some of its part.Please see the PDF and java programs attached.I have tried with isPrintWhenDetailOverflows but couldn't work.Depending on the data entered by the user for each field,last line of the page may differ but what expected is, It should flow to next page if it not fit in current page.

Please advice whethere there is any other way or am i doing anything wrong.

kindly ask me if you need more clarification about my problem.

Below is jrxml and java program.It is not allowing me to attach PDF file .


Java Program

Thank you,
    Bookmark Topic Watch Topic
  • New Topic