2001 JI Open Discussion Posted August 14, 2006 Share Posted August 14, 2006 By: Roger Szeto - rszeto1 scriptlet:beforeDetail & afterDetail 2002-05-03 14:52Question: What I would like to do is in the callBeforeDetailEval() in my scriptlet to generate an image file, let the engine handle it and remove the file in callAfterDetailEval(). However this does not work since when I look inside the JRVerticlaFill code, fillColumnBand() is called after callAfterDetailEval(). By that time the file has been removed. Any reason why the order of the calls is like this: jrAbstractScriptlet.callBeforeDetailEval(); jrCalculator.calculateVariables(); jrAbstractScriptlet.callAfterDetailEval(); this.fillColumnBand(detail, JRExpression.EVALUATION_DEFAULT); Help appreciated. Roger Szeto By: Shiva Murali - shivva Scriptlet Entering into an infinite loop 2002-05-14 03:23Hi ve been recently using this jasper reports. My problem is that my scriptlet is getting executing in an infinite loop. The situation is when a text elemnt overflows on next page. an early solution would be a timely help. Thanks shivva.. By: Teodor Danciu - teodord RE: scriptlet:beforeDetail & afterDetail 2002-05-14 07:36 Hi, Why do you store your image in a file on disk if it is generated on the fly? You can supply directly a java.awt.Image object to the image element on the report. Or you can load a java.awt.Image from the file and immediately delete the file. You pass on this object to the image expression and not the filename as I think you do now. Good luck! Teodor 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