sjoerd.jump Posted January 29, 2014 Share Posted January 29, 2014 Working on a set of reports I notced thats its not possible to adjust the height of a crosstab Dynamicly.i have to generate a bunch of different reports but all with the same number of crosstabs. But not al these crosstabs have the same number of lines.To improve the reports' maintainability i would like to adjust the height of the crosstab dynamicly.The following does NOT work:Paste a Variable into the height field:Paste the variable into the xml. <reportElement uuid="xxx" x="0" y="600" width="1703" height="<![CDATA[$F{ct_1}]]>" /> anyone has an idea? Link to comment Share on other sites More sharing options...
Tom C Posted January 29, 2014 Share Posted January 29, 2014 Report element height attributes is mandatory and represents the size measured in pixels. This value cannot be set through variables. At the report run time, height is calculated dynamically, but the element cannot be smaller than the originally specified fixed height. Link to comment Share on other sites More sharing options...
sjoerd.jump Posted January 29, 2014 Author Share Posted January 29, 2014 hmm, thats too bad :) I have in different reports the same crosstab, but not every cross tab has the same amounth of rows. So the layout of report 1 wont work on report 2 :( Link to comment Share on other sites More sharing options...
Tom C Posted January 29, 2014 Share Posted January 29, 2014 The height you set is for the base height. If you have more rows in the crosstab, the crosstab will grow dynamically in the report. Link to comment Share on other sites More sharing options...
sjoerd.jump Posted January 30, 2014 Author Share Posted January 30, 2014 Let me put it this way :) I have 2 crosstabs in 2 reports in report 1 crosstab the height is fixed to 150 px. So i know where to place crosstab 2 (+150px) In report 2 crosstab 1 is 175 pixels. So placing crosstab 2 @ + 150 px will print the lines over each other. Thats what i'm struggeling with :-) Link to comment Share on other sites More sharing options...
Tom C Posted February 3, 2014 Share Posted February 3, 2014 If that is your requirement, you can set the first crosstab height to 150 with position type to "Fix Relative to Top", and set second crosstab top position at 150 and position type to "Float". Give a try and this should solve your overlapping problem. 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