jprohaska Posted October 4, 2007 Share Posted October 4, 2007 Hallo to all I have the following code that launches a report and X sub reports: JasperRunManager.runReportToPdfFile(template.jasper,output.pdf,parameters,ds); I'm running the class in Tomcat, how can I have in tomcat a counter as "generated 4 of 999 sub reports" Thanks John Link to comment Share on other sites More sharing options...
jprohaska Posted October 4, 2007 Author Share Posted October 4, 2007 OK I answer me again: i've used a SCRIPTLET and a serialized object: Code:public class StatoReportScriptlet extends it.businesslogic.ireport.IReportScriptlet{ monitor mI = new monitor(); int numElaborate = 0; public String contaSottoReport() throws JRScriptletException { ++numSchedeElaborate; mI.avanzamentoJob( XXXXXX,YYYYYY, numSchedeElaborate); return STRINGA_RITORNO ; }} 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