Dduffek Posted March 27, 2007 Share Posted March 27, 2007 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. DanPost edited by: Dduffek, at: 2007/03/26 17:23 Link to comment Share on other sites More sharing options...
Dduffek Posted March 27, 2007 Author Share Posted March 27, 2007 Never mind. I figure out my issue. It was in a different place in the code. Sorry to bother you. Dan Link to comment Share on other sites More sharing options...
karucita Posted March 27, 2007 Share Posted March 27, 2007 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 Band12...15NOTE: In the detail band i show 15 records without any problem... and it let me show the subreport.. subreport 212...15the 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now