23 August, 2012

Footer in Ireport


I always print in report footer  some data about displaying date and pages counter like below image
I will explain how to execute this in Ireport



In PageFooter band add the below items

1-  Add "Print at:"
Add Static Text and Type "Print at :" inside it.

2-  Add Printing Date and Time
Add Text Field and change the below properties
    Text Field Expression Class: java.lang.String
    Text Feild Expression          :
 new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.sql.Date(System.currentTimeMillis()))



3-  Add "Page "
Add another Static Text and Type "Page " inside it.

4- Add Page Number
Add Text Field  and change the below properties
   Text Field Expression Class: java.lang.Integer
   Text Feild Expression          : $V{PAGE_NUMBER}
   Evaluation Time                   : Page

5- Add "/" string
Add Static Text and Type "/" inside it.

6- Add Total Pages Count
Add Text Field  and change the below properties
   Text Field Expression Class: java.lang.Integer
   Text Feild Expression          :  $V{PAGE_NUMBER}
   Evaluation Time                   :  Report

Thanks

No comments:

Post a Comment

ADF : Scope Variables

Oracle ADF uses many variables and each variable has a scope. There are five scopes in ADF (Application, Request, Session, View and PageFl...