parthbhagat Posted July 25, 2013 Share Posted July 25, 2013 Hi All, I am using Jasper Report to generate report from the Java code. The report designer I am using is iReport. Along with a master report there are several sub reports also available. Now, my question here is, do Jasper Report API has any way to load sub reports dynamically into master report? Here is example: A master report have three sub report. SubReport1, SubReport2 & SubReport3. Now the order of these sub reports displayed in a master report is not specific. It is based on the user inputs. So if user wants to display SubReport2 before SubReport1 then the user have to provide input accordingly. So, is there any way using which we can achieve this functionality using JasperReport API? Link to comment Share on other sites More sharing options...
federico.cattozzi Posted July 25, 2013 Share Posted July 25, 2013 Define a parameter into master report that contains the subreport name.Use the parameter into "Print when Expression" or "Subreport Expression" properties to manage how subreport to load. 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