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

sven.brueck

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by sven.brueck

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