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

Go to solution Solved by abhimanyu.prasad,

Recommended Posts

I have already gone though the instructions provided at http://community.jaspersoft.com/questions/523992/tip-embedding-images-reports

But, when I declare a variable in my JRXML file something like:

<variable name="image" class="java.lang.String">

I always get compilation errors.

Can anyone suggest me any solution for this?



Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Hey thanks a lot, Ben. Actually, I had tried with the double quotes, but I was always evaluating it under <variableexpression>. The same thing worked if we do the same inside <initialValueExpression>:

<variable name="encImage" class="java.lang.String">       <initialValueExpression><![CDATA["iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAA…"]]></variable>[/code]

The thing striked as soon as I saw your reply.  



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