udumanajmeer Posted June 7, 2013 Share Posted June 7, 2013 my condition is,if(name1.equals("personal")) first subreport want to viewif(name2.equals("contact") second subreport want to view.....if(name13.equals("award")) another subreport want to view For this scenerio i want to check condition in jasper ireport and i have to pass parameter as a name1,name2......name13. Based on the parameter that subreport only will view in jasper ireport.ThanksUduman Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 7, 2013 Share Posted June 7, 2013 Simply use the "Print When expression" setting of subreport, that will do it.Hints: Either you overlay the subreports AND hold their layout small (1px height), or you use a detail band for each subreport where the "Print When expression" is on the band. Otherwise you will propably get problems with offsets with the subreports or even empty pages.Cheers, Thomashttp://www.thomaszimmer.net 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