JimboJones2018 Posted January 25, 2018 Share Posted January 25, 2018 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 Link to comment Share on other sites More sharing options...
sergey.vishnevetskiy Posted January 31, 2018 Share Posted January 31, 2018 This is a bit out of scope for Jasper Studio.Seems you are trying to achieve something than this tools can do. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now