andre2k2 Posted June 28, 2007 Share Posted June 28, 2007 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 More sharing options...
andre2k2 Posted June 28, 2007 Author Share Posted June 28, 2007 The problem happens when call compileReportToFile() Link to comment Share on other sites More sharing options...
mshoe Posted June 29, 2007 Share Posted June 29, 2007 You need to make sure your report contains a parameter named "Logomarca". 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