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

sven.brueck

Members
  • Posts

    1
  • Joined

  • Last visited

sven.brueck's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi I'm trying since a few day now to show a .png image in my report. I tryed warrious way, impart via Beanfile, or via a HashMap parameter, nothing worked for me. I found now a way, that shows me the image in the report now I add following line in my jrxml fil <imageExpression><![CDATA[ClassLoader.getSystemResource("/img(logo.png");</imageExpression>[/code]and it finaly worked. BUT it is static. I load now the image frome the -jar but I can chang it from my java application out. so I tried this. Java code HashMap parameters = new HashMap(); [/code]parameters.put("logo", "/img/logo.png");[/code]and in my jrxml file <imageExpression><![CDATA[ClassLoader.getSystemResource($P{logo});[/code]System.out.println($P{logo};</imageExpression>[/code]now when I run my application I do not have a logo in my report but on my console I can see the println from $P{logo} witch is /img/logo.png how can I instert the path string in my [CDATA[ClassLoader.getSystemResource($P{logo}) code ?
×
×
  • Create New...