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

Need to display "Image not Available Text" in the space designated for the logo if the image is not available


chandan.kits

Recommended Posts

I have to display "Image not Available Text"  in the space designated for the company logo if the image from the server is not available at fill time during pdf generation.

Is there any way to conditionally load  a text message in the image expression if the image in concern is not available or the image file is not found. Please help.

Link to comment
Share on other sites

  • 1 year later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

<detail>

<band height="417">

<image onErrorType="Blank">

<reportElement x="84" y="10" width="380" height="380" uuid="876b42e6-3b20-4746-85b4-04ee04883e18"/>

<imageExpression><![CDATA[$V{emailidVarb}]]></imageExpression>

</image>

</band>

 

Use onErrorType=Blank inside Image tag. It will not show any image if image is not available instead of showing Byte not found.

Link to comment
Share on other sites

<detail>

<band height="417">

<image onErrorType="Blank">

<reportElement x="84" y="10" width="380" height="380" uuid="876b42e6-3b20-4746-85b4-04ee04883e18"/>

<imageExpression><![CDATA[$V{emailidVarb}]]></imageExpression>

</image>

</band>

 

Use onErrorType=Blank inside Image tag. It will not show any image if image is not available instead of showing Byte not found.

Link to comment
Share on other sites

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