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

hszetu

Members
  • Posts

    3
  • Joined

  • Last visited

hszetu's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Thanks Matt for the snippet, that really helps. I would agree with you that this should be built right into the JasperReports engine;-) Henry
  2. Hi, Are there any work done in regards to prevent the infinite loop from happening? I have just tested the same report with version 2.0.4 and it still have the infinite loop problem. I debugged it and it boils down to the this snippet JRVerticalFiller.fillColumnBand() that ends up in an infinite loop when filling the detail section. Code: while (band.willOverflow()) { fillColumnBreak(evaluation, evaluation); printBand = band.fill(columnFooterOffsetY - offsetY - band.getHeight()); fillBand(printBand); offsetY += printBand.getHeight(); } columnFooterOffsetY = 726 offsetY = 234 band.getHeight() = 290 It just having the exact same values when it is looping. I figured that it must have something to do with the detail section that might cause jasper into the infinite loop. In the detail section, there is a subreport and some static labels and text fields in it. So, I tried moving those labels and fields out of the detail section to the summary section and leaving the detail section contains only the subreport. This time the report is generated successfully, no infinite loop! Is that the cause of the infinite loop problem? Is it allow to have a detail band to have a subreport and at the same time with some labels and fields below the subreport? One thing I noticed is that the summary section does not fit in the rest of the first page(expected) and it is moved to the second page but the second page have no pageHeader nor pageFooter(unexpected)? I tried adding a lastPageFooter but it did not show on the summary page either? Isn't the pageHeader and pageFooter supposed to show on all pages? Any ideas? Another question - is it possible to create multiple band of the same band type, e.g., 2 detail bands? Basically, I want each detail band to hold certain fields and has its own band properties. Thanks in advance for your responses. Henry
  3. Hi, I have the exact same problem with the subreport that ends up in a infinite loop. What I noticed is that when rendering the report, the subreport datasource call keeps rewinding, ending up in an infinite loop (next(), ..., next(), moveFirst(), next()...). The subreport is in the detail section of the main report. This seems to happen only when the subreport is big enough to cause the report to overflow to more than 1 page. If the report can fit in 1 page, the report can be generated without any problem. If this is a report layout issue, how do I fix the report layout? What do I have to look out for when designing the report to avoid the infinite loop problem? Thanks in advance. Henry
×
×
  • Create New...