2005 IR Help Posted August 27, 2006 Share Posted August 27, 2006 By: johnnytmac - johnme14 Full page subreport possible? 2004-12-15 05:53 I have a subreport that begins at the end of a page, then continues to the next. However, when it overflows to the next page, only 12 lines are printed, which is about 1/3 of the page, then 12 lines are printed on the next page and so on. Does anyone know how to allow the subpreort to stretch onto the entire new page? By: CleverFool - cleverfool RE: Full page subreport possible? 2004-12-15 08:01 Hm... maybe groups will help - see them in jasperreports tips&tricks. By: kc - kckckc RE: Full page subreport possible? 2004-12-15 08:07 I had the same problem... the solution is for each subreport create a group and only use the groupheader to place the report. By: johnnytmac - johnme14 RE: Full page subreport possible? 2004-12-16 08:09 The subreport will contain the group? Not quite sure i know what you mean, but is it something like this? <group> <groupheader> <band> <textField> <textFieldExpression>$F{field1}</textFieldExpression> </textField> <textField> <textFieldExpression>$F{field2}</textFieldExpression> </textField> </band> </groupHeader> </group> and end up without a detail section? By: kc - kckckc RE: Full page subreport possible? 2004-12-16 08:27 indeed so... just don't use the detail section. Did it work ? By: johnnytmac - johnme14 RE: Full page subreport possible? 2004-12-16 09:58 I continue to get the error SEVERE: Element "jasperReport" does not allow "group" here. Does the group have to be defined within a certain place in the XML file? By: johnnytmac - johnme14 RE: Full page subreport possible? 2004-12-16 10:55 Not getting an error anymore, can print more on a page maybe 14 lines or so vs 12, but still has a page break after about 14. 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