christiaan_se Posted March 17, 2009 Share Posted March 17, 2009 hi,I want to print an image where the image is using the full height of the detailband. I have solved this as follows:1) creating an JRDesignImage with JRImage.SCALE_IMAGE_RETAIN_SHAPE 2) Creating a detail band which is has the actual height of the page minus header and footer band heights3) Placing the JRDesignImage on the detail band, give it the same height as the detail band and setting the stretch type to STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHTThis works fine, however, if the header dynamically increases in height (eg. because it contains a text which is wrapped to the next line). JasperReports keeps on generating the report for ever since (of course) the detail band's height is too large. Is there another way to solve this?kind regards,Christiaan 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