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

Set expression image with a field


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

after adding an Image element to report, you should be able to use any field from report dataset in image expression. In JRXML it looks like

            <image>
                <reportElement x="9" y="18" width="50" height="50" uuid="fd0c1fc5-742f-472b-b048-bc48c461a58f"/>
                <imageExpression><![CDATA[$F{img}]]></imageExpression>
            </image>

Have you tried it?

Best regards,
Andrew

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