robertsv Posted January 10, 2008 Share Posted January 10, 2008 Hello :) I have three groups and I want that:if the group "Country" is started then there should be enough space to start "City" group and if the "City" group is started there should be enough space to start "Block of city" group andif the "Block of city" group is started there should be enough space at least for the first line of detail section. In worst case (if remaining vertical space ir minimal) the generated report should look like this: Some CountrySome CitySome Block of cityfirst line of detail section---- end of page ---- What values for minHeightToStartNewPage of each group I should set?Are those minHeightToStartNewPage values listed below correct? Example: Code:<group name="Country -" minHeightToStartNewPage="78" > <groupExpression><![CDATA[$F{country}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="true" >... </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" >... </groupFooter></group><group name="City -" minHeightToStartNewPage="56" > <groupExpression><![CDATA[$F{city}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="true" >... </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" >... </groupFooter></group><group name="Block of city -" minHeightToStartNewPage="34" > <groupExpression><![CDATA[$F{block}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="true" >... </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" >... </groupFooter></group><detail> <band height="12" isSplitAllowed="true" >... Link to comment Share on other sites More sharing options...
itchytoes Posted January 10, 2008 Share Posted January 10, 2008 Hi -- Well, at first glance, your numbers make sense to me. Does it work? Betty Link to comment Share on other sites More sharing options...
robertsv Posted January 10, 2008 Author Share Posted January 10, 2008 Hi, :) no, not really. Of course I can set the value of the minHeightToStartNewPage quite huge, but this is not what I want. I set for some group minHeightToStartNewPage="X"!In which case the header of this group will be printed in the next page?a)if the remaining vertical space of the current page is < X b)if the remaining vertical space of the current page - band height of group header is < X Link to comment Share on other sites More sharing options...
lucianc Posted January 11, 2008 Share Posted January 11, 2008 robertsv wrote:In which case the header of this group will be printed in the next page?a)if the remaining vertical space of the current page is < X b)if the remaining vertical space of the current page - band height of group header is < X The answer is a) OR the remaining space < the group header declared band height. Regards,Lucian Link to comment Share on other sites More sharing options...
robertsv Posted January 11, 2008 Author Share Posted January 11, 2008 thanks for the answer! Link to comment Share on other sites More sharing options...
ahil Posted March 3, 2008 Share Posted March 3, 2008 Hi lucianc, is there any oportunity to set minHeightToStartNewPage in IReport or from Java?I mean not edit jrxml file with texteditor, but through transfer of parameters or i don't know.. Thanks! :lol: Link to comment Share on other sites More sharing options...
ahil Posted March 3, 2008 Share Posted March 3, 2008 don't want take your time! i have found it now in IReport look like this one: view->properties ->element properties Thanks!:PPost edited by: ahil, at: 2008/03/03 13:29 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