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

Passing image by parameter


andre2k2

Recommended Posts

Im with problems passing an image (java.awt.Image)

in my JRXML the code is:

Code:

<image hAlign="Center" scaleImage="RetainShape" vAlign="Middle">
<reportElement height="80" width="149" x="10" y="0"/>
<graphicElement stretchType="RelativeToTallestObject"/>
<imageExpression class="java.awt.Image"><![CDATA[$P{Logomarca}]]></imageExpression>
</image>

 

then in java i do:

 

Code:
[code]
Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("Logomarca", logomarca);

 

but this error message is show:

Report design not valid :

1. Parameter not found : Logomarca

 

???????????????

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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