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

venku_pals

Members
  • Posts

    6
  • Joined

  • Last visited

venku_pals's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Hi , Thanks for you help. I like to double check the requirement and the custom datasource approach. 1. In my sql approach currently, i am getting the total number of records upfront in one of the colum and using it in the printwhenexpression. If you are suggesting me to try custom datasource approach just to know the total number of records upfront, that is not any use. Like to know if you are referring to something else in customdatasource approach. My need is - Before we print every record, i like to know if we are reaching the end of the page and if needed i can issue a page break if there is only 1 record left to print on the next page. My section starting can be any where on the page. 2. i tryed the customdatasource approach example and attached is the files, see if there is anything i am missing to reach for a solution. In the datasource.pdf i need to issue a pagebreak just before 33rd record as only 1 record is present in the next page. Thanks, Venkat
  2. Hi, Thanks for replying. My question is a little different and not something to do with MinHeightToStartNewPage. My issue is let us say there is a section(which has exactly 11 records of data) started in the middle of a page and can accommodate 10 rows of data in the remaining space on that page. Obviously the 11 record will be displayed in the next page. In this case my requirement is i need to make sure atleast 2 records of data should be there in the second page. So i need to issue an explicit break at the 9 th record. If you want another example: say a section started exactly on top of page and it displayed all the 39 records on this page and another 39 on the next page and only 1 record on the 3 rd page. In this case also i need to make sure it is like this 39(1 page), 38(page2), 2(page3). If we have more than 1 record on the last page we don't worry. Let me know, if you need more info on this. Thanks, Venkat
  3. Hi Jasper experts, Need your help for an issue i am struggling with. I am using Jasper reports 2.0.5, ireports 2.0.5. for PDF generation. My document has multiple subreports which is called one in another like a chain. Each subreport can span to multiple pages. The requirement is, if at all it happens the last page for any section(group) has just 1 record, i need to borrow 1 rec from previous page to make sure there are always atleast 2 rows of detail section data in the last page. Currently i am making sure every page has 39 records max and when i reach at the last 2 recs(groupcount-recordcount=2 and if it crosses 34 records on that page) i am issuing a page break. This works fine for pages more than 2. It fails, if my section started in the middle of the first page and ends at the begin of the 2nd page when very less data. If there is a way, i can find the co-ordinates of print location and if it crossed 700px then i can issue a page break. But till now the research in the forum says finding coordinates is not possible. I saw some dummy group approach in the forum to give minheighttostartnewpage but this will not help in my case. Only approach i did not try is scriptlets as i am facing an issue with jdk unsupported major/minor 49.0 error. Please suggest me how can i make sure always i have 2 recs in the last page of my group. Thanks, Venkat
  4. Hi ,Thanks in advance for having a nice open source and Forum.I need guidence dealing with large PDF. I am clicking a link to call servlet which inturn calls opens a Jasper PDF. As the PDF is having more pages and it can take some mins before it loads fully. I need to show some sort of an indicator Label/ Javascript Popup to the user. Attaching the java/jrxml file. Please pin point me where i can make the change. Thanks, Venkat
  5. Got this sorted. Below is the fix. new Boolean($V{PAGE_NUMBER}.intValue()>1 && $V{REPORT_COUNT}.intValue()>0) Thanks, Venkat
  6. Hi Please help me with this. I need to include a label "Continue" in my Group header if the data is overflowing to multiple pages. Right now my approach is like this. I have multiple sections and the section i need to place Continue is having a (minimum Height to start new page) logic. This printwhenexpression new Boolean($V{PAGE_NUMBER}.intValue()>1) is working fine in general but when the (minimum Height to start new page) is failed, i mean if it pushes to the next page this logic is failing. The PAGE_NUMBER is holding a value of 2 eventhough it is visible in page 1. I tryed when detail overflows approach but did not work. Can you suggest me to fix this. Thanks, Venkat [file name=ASCAdjustmentsSection.jrxml size=18987]
×
×
  • Create New...