Jump to content

Printing an image with full page height


christiaan_se

Recommended Posts

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 heights

3) 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_HEIGHT

This 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...