FineReport report setting date automatically calculates

  
FineReport is a very useful report software. When we use FineReport report, we will automatically calculate the date for convenience. The following small series will introduce you to the FineReport report how to automatically calculate the date as shown in the above figure, there is an age field, and there is no such field in the database, this has to be obtained through the date calculation. Let's take a look at the process of implementing the above report with the Java report tool FineReport. 1. Design Report 1.1 Design of the sample design The basic framework of the report is designed according to the following figure. Report design design 1.2 date automatic calculation in the E6 cell filled with =year (now ()) - year (E5) +1, year (now ()) - year (E5) +1 refers to the current year minus Adding one year to the date of birth is the age. 3. Save the preview and save it as: %FineReport_HOME%/WebReport/WEB-INF/reportlets/com/doc/form/5.3.cpt Start the report server, click on the report preview in the upper right corner of the report designer, you can preview the report. Or directly in the browser data address: http://localhost:8075/WebReport/ReportServer?reportlet=com/doc/form/5.3.cpt&op=write This article comes from [system home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved