Jump to content

darelrex

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

darelrex'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. "Or you should merge the multi JasperPrint Objects you now have into one JasperPrint Object" How do you "merge JasperPrint objects?" I need to do the same thing as this thread's originator, but I don't need to fix the page numbers -- i just want to have a single JasperPrint that consists of multiple JasperPrints in sequence. That code link in the last reply goes to some code that shows how to modify the contents (page numbers) -- but I didn't see anything there about how to merge two or more JasperPrints into one JasperPrint. Thanks in advance --DarelRex
  2. I have a Jasper report in which each subreport takes up a whole number of pages (1 or more pages). There is no way for me to know how many pages each subreport is going to take -- Jasper figures that out when it compiles the report. In the header of every page, I need to display some information that is relevant to the subreport that is shown on that page. The only way to do this, as far as I know, is to create a field in the header and populate it with a condition like this: $V{REPORT_COUNT}.intValue() == 0 ? "aaa" : $V{REPORT_COUNT}.intValue() == 1 ? "bbb" : "ccc" That should cause the header to show "aaa" for all pages of the first subreport, "bbb" for all pages of the second report, and "ccc" for all pages of the third (last) report. My problem is that REPORT_COUNT is not delivering the correct value. It seems to be giving the number of subreports that had been accessed before the current page started processing. So I get something like this: Page 1 (report A) --> REPORT_COUNT is 0 Page 2 (report A) --> REPORT_COUNT is 1 (problem) Page 3 (report B) --> REPORT_COUNT is 1 Page 4 (report C) --> REPORT_COUNT is 2 Has anyone else encountered this problem? Is there a known solution? Thanks very much in advance.
×
×
  • Create New...