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

scriptlet:beforeDetail & afterDetail


Recommended Posts

By: Roger Szeto - rszeto1

scriptlet:beforeDetail & afterDetail

2002-05-03 14:52

Question:

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:23

Hi

 

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...