andyj Posted October 19, 2006 Share Posted October 19, 2006 I'm trying to make a two column report with two subreports one after the other in the same band. As below: Code:/-------------------------------------| SubReport1 Hdr | SubReport2 (cont.) || report1 row1 | report2 row3 || report1 row2 | report2 row4 || report1 row3 | report2 row6 || -------------- | report2 row6 || SubReport2 Hdr | report2 row7 || report2 row1 | report2 row8 || report2 row2 | |-------------------------------------/ How would I achieve this? (I'm using jasper reports 1.1.1, and iReport) The closest I've got is making a 2 column report with the two subreports below each other with position type: float. But in the example above report2 row3 appears level with report2 row1 (as if the two subreports were in different bands) but then report2 row5 starts at the top of the same column and eventually the rows start overwriting themselves. I'm nearly there, but I'm missing something. Help much appreciated.Andy. Post edited by: andyj, at: 2006/10/19 07:17Post edited by: andyj, at: 2006/10/19 07:18 Link to comment Share on other sites More sharing options...
lucianc Posted October 19, 2006 Share Posted October 19, 2006 Not sure what's causing your layout issue. Maybe we could tell something if you'd post some relevant JRXML fragments. What you are trying to achieve is possible, I've attached sample reports that show it.. Regards,Lucian [file name=rep.zip size=1097]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/rep.zip[/file] Link to comment Share on other sites More sharing options...
andyj Posted October 20, 2006 Author Share Posted October 20, 2006 Thank you, your example showed my problem. My subreports had the same layout (2 column with margin) as the parent report, and both reports were floated. A happy Andy. 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