kaydara Posted July 6, 2010 Share Posted July 6, 2010 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 More sharing options...
slow Posted July 12, 2010 Share Posted July 12, 2010 As you suggest with your topic I try some scriplet basic... I'm using IReport 2.0.3you 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 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