Jump to content
Changes to the Jaspersoft community edition download ×

Use parameter to select image


Recommended Posts

I am using a slightly old version of iReports (v. 0.5.2), but I am hoping someone can still help me out with this...


I want to select a differnt gif image in my report based on a parameter.


The current image has this in the image expression:




I wanted to create a parameter called "ImageName" and change the expression to this:




The parameter is a string with a default of "fm".


This does not seem to work. When I run the report I get this error message:



net.sf.jasperreports.engine.JRException:ÂImageÂnotÂfoundÂ:ÂS:ReportsImages((java.lang.String parameter_ImageName.getValue())..gif


Any help that anyone could provide would be greatly appreciated.


Thanks in advance!

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