Jump to content
Changes to the Jaspersoft community edition download ×

report groups difference JasperReports/iReports


Dduffek

Recommended Posts

Hi all,

 

I am work with IReport (getting the newest version) and a program that compiles templates and generates a jasper print. In my template, I have 2 report groups. 1 report group manages pages. The other works off of a variable from the data. The data is read as a field call Operator. The expression of the report group is this $F{Operator}. Also the box is checked for resetting the page count.

 

Anyways, I run this report in IReports and it works perfectly, and the page numbers are reset on every new Operator. In my program, it seems to think every new page has a different operator, thus the page number is always 1. I am using JasperCompileManager.compileReport(uncompiledTemplateIn) to compile my reports. Do I need something else here?

 

I am passing in the data later and that all seems correct, so it looks like the template is just being compiled differently. Also I know both programs are using the same JasperReports jar.

 

Any guesses anyone?

 

Thanks for looking at this.

Dan

Post edited by: Dduffek, at: 2007/03/26 17:23

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hello, i need your help please... I have this problem... I have one subreport.. but i don't know how to split it.. because i need to show only 15 records per page of the subreport...But I'm also working with the detail band.. It's something like this:

Detail Band

1

2

...

15

NOTE: In the detail band i show 15 records without any problem... and it let me show the subreport..

subreport 2

1

2

...

15

the problem is that the subreport show all its records and then it let to show the data of the records of detail band (since 16-30)...

So.. I need to split it... I was trying with the page break.. and also with this code:

new Boolean($V{REPORT_COUNT}.intValue()==15?true:false)

that let me show only 15 records per page..but it only work in the first page.. because the subreport show all their data... I need that the subreport work as the detail band..

Can someone help me pls.. !!!

 

:dry::unsure:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...