Jump to content
We've recently updated our Privacy Statement, available here ×

htmlcomponent is not properly scalable


malamut

Recommended Posts

Hi!

I'm using htmlcomponent sample and I've read this issue and a lot of similar questions.

It's clear that html genericElement in this case behaves like image and isStretchWithOverflow="true" works only with text fields.

However scaleType RealHeight and RealSize also don't work. You can see modified sample and results in attachments.

If reportElement's height is changed from original 110, to smaller value, for example, 50 - html become smaller despite scaleType RealHeight. Similar example with images works.

Is it bug or I'm doing something wrong?

 

 

Code:
<band height="550">			<genericElement>				<reportElement uuid="96e1bb01-0188-4f2a-8d27-b8210e2557dd" stretchType="RelativeToBandHeight" x="0" y="230" width="230" height="50" backcolor="#ADD8E6"/>				<genericElementType namespace="http://jasperreports.sourceforge.net/jasperreports/html" name="htmlelement"/>				<genericElementParameter name="htmlContent">					<valueExpression><![CDATA[$P{htmlTable}]]></valueExpression>				</genericElementParameter>				<genericElementParameter name="scaleType">					<valueExpression><![CDATA["RealHeight"]]></valueExpression>				</genericElementParameter>			</genericElement>		</band>
Link to comment
Share on other sites

  • 6 months later...
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 9 years later...

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