Jump to content

JimboJones2018

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Everything posted by JimboJones2018

  1. Hi, I made a report with Jaspersoft Studio 6.2.2. The image on the first page should be positioned dynamically. This should be done with a scriptlet like this ... @Override public void beforeReportInit() throws JRScriptletException { JasperReport jr = (JasperReport) this.parametersMap.get("JASPER_REPORT").getValue(); JRBand titleBand = jr.getTitle(); JRElement je = titleBand.getElementByKey("img_logo"); je.setX(100); // setting the x-position }[/code]After generating the report it seems that it doesn´t work, image-object is still on the origin position. Retrieving the x-position with get()-method shows the expected value of 100. It is via scriptlet not possible to change the position dynamically ?? Any ideas ? Greetings, Jimbo
×
×
  • Create New...