malamut Posted June 26, 2012 Share Posted June 26, 2012 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 More sharing options...
chenerwei Posted January 22, 2013 Share Posted January 22, 2013 I had the same error,but my project'time is too short,i an very confused by the component Link to comment Share on other sites More sharing options...
chenerwei Posted January 22, 2013 Share Posted January 22, 2013 I had the same error,but my project'time is too short,i an very confused by the component Link to comment Share on other sites More sharing options...
chenerwei Posted January 22, 2013 Share Posted January 22, 2013 I had the same error,but my project'time is too short,i an very confused by the component Link to comment Share on other sites More sharing options...
chenerwei Posted January 22, 2013 Share Posted January 22, 2013 I had the same error,but my project'time is too short,i an very confused by the component Link to comment Share on other sites More sharing options...
chenerwei Posted January 22, 2013 Share Posted January 22, 2013 I had the same error,but my project'time is too short,i an very confused by the component Link to comment Share on other sites More sharing options...
vineethhegde68 Posted June 9, 2022 Share Posted June 9, 2022 Still stuck in the same issue. Any help around this please 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