roston Posted March 27, 2012 Share Posted March 27, 2012 So I have some problem with jasper report. My issue about dynamic height of some element, that depends on another element. In details: I have table of two cells. And in first cell, I have 4 frame elements. Like ++------------------++-------++--------++ ++Program info++Units++Totals++ ++------------------++-------++---------++ ++ COMMENT ++ ++-----------------------------------------++ So Program info is one frame, Units and totals another, and comment, one another.So problem. One product could have of not comment, so I set printWhenExpression to Comment Frame. But when product have no comment there is blank place, but I want to increase height of Program info, Units, Totals frames for aligning, or stretch frames down, and I don't want to have blank place in my reports. How I can do this?!Post Edited by roston at 03/27/2012 10:29 Link to comment Share on other sites More sharing options...
vindeel Posted March 28, 2012 Share Posted March 28, 2012 Have you tried giving Comment properties "Remove Line when blank" and giving the other items properties "Stretch Type - Relative to band height"? Link to comment Share on other sites More sharing options...
roston Posted March 28, 2012 Author Share Posted March 28, 2012 yeap. but it still don't work. The place of Comment is blank, at it displayed as blank place in my pdf file Link to comment Share on other sites More sharing options...
vindeel Posted March 28, 2012 Share Posted March 28, 2012 Then try using an expression for the program info, units and totals fields. something in the line of 'when comments is blank, program info height = "hard coded maximum band height"' 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