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

java jasperRunManager subreports counter


jprohaska

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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