chandan.kits Posted September 4, 2013 Share Posted September 4, 2013 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 More sharing options...
nsgraji Posted March 13, 2015 Share Posted March 13, 2015 Hi i am also facing the same issue. Dont know how to find if the image is available in certain path. If not availabe, need to print "image not available". Did you get any solution for this?? Link to comment Share on other sites More sharing options...
nsgraji Posted March 13, 2015 Share Posted March 13, 2015 <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 More sharing options...
nsgraji Posted March 13, 2015 Share Posted March 13, 2015 <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 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