simonet Posted November 26, 2007 Share Posted November 26, 2007 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 More sharing options...
simonet Posted November 26, 2007 Author Share Posted November 26, 2007 and if there are more columns than 1, how can I get them ? Post edited by: simonet, at: 2007/11/26 13:54 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