Jump to content

Image Background


cheeka

Recommended Posts

Image background for the image is not set for HTML reports. However, for the PDF reports image background is set.

 

The image expression set as string. Here is the code snippet for the image tag.

 

Code:

<image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="1"
y="1"
width="11"
height="20"
forecolor="#00CCCC"
backcolor="#006699"
key="image-1"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<graphicElement stretchType="NoStretch" pen="None"/>
<imageExpression class="java.lang.String"><![CDATA[($F{state}.intValue()==2 || $F{state}.intValue()==0)?"images/nrd/show.gif":"images/nrd/hide.gif"]]></imageExpression>
<anchorNameExpression><![CDATA["reportrow"+$F{id}]]></anchorNameExpression>
</image>

 

My question is how to set background color for the images in HTML format.

Link to comment
Share on other sites

  • Replies 1
  • 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...