Jump to content
Changes to the Jaspersoft community edition download ×

How can change width, height dynamically in Jasper using parameters?


ishanisamaraweera

Recommended Posts

How can change width, height dynamically in Jasper using parameters?

<image onErrorType="Icon">
<reportElement mode="Opaque" x="0" y="0" width="166" height="67" uuid="c3c0a660-62ed-4a17-8bb7-c8ed91a87b98">
    <propertyExpression name="width"><![CDATA[$P{logoWidth}]]></propertyExpression>
    <propertyExpression name="height"><![CDATA[$P{headerHeight}]]></propertyExpression>
</reportElement>
<imageExpression><![CDATA[$P{imageurl}]]></imageExpression>


I tried with above code block but it didn't override initial values with the parameter values.

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