Jump to content

Image not getting dispayed


jimjohn

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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