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

Help with Scriptlet


kaydara

Recommended Posts

 Hello guys,

 

i am trying to use scriptlet to help me make a TOC for my report, but i have some basics questions in how to use scriptlets.

 

I know i have to import some the:

 

import net.sf.jasperreports.engine.JRDefaultScriptlet;
import net.sf.jasperreports.engine.JRScriptletException;

But how should i make a scriptlet, should i use eclipse and create a new java project ?Should i use ant to compile my java file ?

This should be so basic that i don't find this part on the tutorials about scriptlet that are around.

Can someone point me the right direction ?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

As you suggest with your topic I try some scriplet basic... I'm using IReport 2.0.3

you must include in your IReport classpath the tool.jar java library to compile on the fly the scriplet code.

then you can create you scriplet with eclipse, texpat, notepad :)

simply create class and past it in the scriplet editor in your IReport... each time you run the report, if it is configured to use the  scriplet, then it compiles also the scriplet code...

 

 

Link to comment
Share on other sites

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