Jump to content
Changes to the Jaspersoft community edition download ×

Dynamically Creating Image URL's using iReport


clhubert

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

It seems like the solution is to use the imageExpression tag.  

                <image hyperlinkType="None">
                    <reportElement x="370" y="2" width="42" height="17"/>
                    <imageExpression class="java.lang.String"><![CDATA["http://www.translatorscafe.com/cafe/images/flags/US.gif"]]></imageExpression>
                </image>

But I am having trouble adjusting it so that it changes per row.

So far I tried...

                <image hyperlinkType="None">
                    <reportElement x="370" y="2" width="42" height="17"/>
                    <imageExpression class="java.lang.String"><![CDATA["http://www.translatorscafe.com/cafe/images/flags/"$F{Country_ISO3166}".gif"]]></imageExpression>
                </image>

 

But there appears to be an error with the expression.  Any help would be appreciated.

Link to comment
Share on other sites

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