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

Print "Page X/Y" if total page are greater than one


xinoxs78

Recommended Posts

 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

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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...