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

Seeking Subreports inside bands


simonet

Recommended Posts

Hi

 

I have a file.jasper which is being loaded by the java method:

JRLoader.loadObject(its bytes)....

 

to get its subreports I had to scan all the bands like:

JRElement[] elem = null;

elem = report.getDetail().getElements();

if(seekSubReports(elem)==-1) return false; //It DOESNT MATTER

elem = report.getTitle().getElements();

if(seekSubReports(elem)==-1) return false;

elem = report.getPageHeader().getElements();

if(seekSubReports(elem)==-1) return false;

elem = report.getPageFooter().getElements();

etc etc GROUPS INCLUDED !!

 

ISN'T THERE A WAY TO GET AN ARRAY OF BANDS AND SCAN IT with a for iteration INSTEAD TO DO AS SHOWN ABOVE !!! IT'S SO UGLY !!!!

 

Thnak you very much

Link to comment
Share on other sites

  • Replies 1
  • 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...