Jump to content
Changes to the Jaspersoft community edition download ×

How do I set the HTML element in JasperStudio to stretch to the size of the source?


michael.f.pascoe

Recommended Posts

I have been looking for this answer for about a week now but I cannot find anyone who specifically addresses this issue. At the moment, I am trying to import html from a file into a Jasper Report using the HTML element and a custom data source. I am using this element because unlike the text field, it can render images.

The text field has a great feature where it will resize if you set it to "stretch with overflow."

However, the HTML element does not do this...instead it clips anything that would render outside the specified element size. Is there a way to dynamically stretch the size of the HTML element in a similar way to the text field?


Also, side question but related....The HTML element renders more like a jpg when exporting the report in PDF format....this basically means that it tries to fit the entire thing into the fram of the element and it ends up squishing everything down. Is there a way to stop this from happening the way that it renders when you export to HTML is much more appropriate, the only problem being the one mentioned above...


Thanks.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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...