xinoxs78 Posted November 17, 2016 Share Posted November 17, 2016 Hi, I'm using JasperReport library (5.6.0) and the same version for JasperSoftStudio. I have a master report (said MR) composed by 5 subreport : SR_1, SR_2, SR_3, SR_4 and SR_5. In the page footer band of the MR there is two text-fields : (X and Y) Text Field X, has evaluation time Now Text Field Y, has evaluation time Report to obtain the common text description "Page X of Y". Every subreport, can be composed by multiple section details with a common title in the page header band . Title template is: SR_X_Title (Page X/Y) ( for example SR_X_Title (Page 1/3) , SR_X_Title (Page 2/3), SR_X_Title( Page 3/3) ) If a subreport is rendered as "SR_X_Title (Page 1/1)", the "(Page 1/1)" text description, should not be printed. Text description ("Page 1/1") are two text-fields (as "Page X of Y" of the Master Report, MR) with different evaluation time. How can I print ("Page X/Y"), only if total page of subreport SR_X are greater than one ? Link to comment Share on other sites More sharing options...
Sugunakar Raju Posted December 2, 2016 Share Posted December 2, 2016 Hi ,Drag a frame into page footer and drag Page X/Y variable into that frame.Give print when expression by using page count varaiable by specifing count condition greater than 1$V{PAGE_COUNT} >0 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