jimjohn Posted September 20, 2008 Share Posted September 20, 2008 Hiii..I have put an image in report .But is not getting displayed .No error is throwing.Report is returned as bytes.My code is as follows Code:<image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="32" width="141" height="43" backcolor="#CCCCCC" key="image-3" stretchType="RelativeToBandHeight" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[new Boolean($P{HeaderFooter}.equalsIgnoreCase("TRUE")?true:false)]]></printWhenExpression> </reportElement> <box></box> <graphicElement stretchType="RelativeToBandHeight"/> <imageExpression class="java.io.File"><![CDATA[new File($P{ContextPath},"/images/img.jpg")]]></imageExpression> </image> 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