欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

FineReport報表怎么對日期進(jìn)行自動計算

  發(fā)布時間:2015-03-09 15:15:00   作者:佚名   我要評論
FineReport一款很實用的報表軟件,F(xiàn)ineReport要怎么做報表或者說FineReport要怎么自動計算,下面以圖文的形式為大家介紹下FineReport報表怎么對日期自動計算

  FineReport要怎么做報表或者說FineReport要怎么自動計算,對于新手來說這或許是最強(qiáng)大的功能了。FineReport一款很實用的報表軟件,我們在使用FineReport報表的時候為了方便我們會進(jìn)行日期自動計算。下面小編就為大家介紹一下FineReport報表怎么對日期自動計算

  FineReport
FineReport

  如上圖所示的報表中,多了一個年齡字段,而在數(shù)據(jù)庫中沒有這個字段,這就得通過日期的計算獲得。

  下面我們就來看一下用Java報表工具FineReport實現(xiàn)上述報表的過程。

  1.設(shè)計報表

  1.1表樣設(shè)計

  按照下圖設(shè)計好報表的基本框架。

  FineReport
FineReport

  報表表樣設(shè)計

  1.2日期自動計算

  在E6單元格中填入=year(now())-year(E5)+1 ,year(now())-year(E5)+1指的是用當(dāng)前年份減去出生年份再加一即為年齡。

  3.保存預(yù)覽

  保存為:

  %FineReport_HOME%/WebReport/WEB-INF/reportlets/com/doc/form/5.3.cpt

  啟動報表服務(wù)器,點(diǎn)擊報表設(shè)計器右上角的填報預(yù)覽,就可以進(jìn)行預(yù)覽填報了?;蛘咴?u>瀏覽器里直接數(shù)據(jù)地址:

  http://localhost:8075/WebReport/ReportServer?reportlet=com/doc/form/5.3.cpt&op=write

相關(guān)文章

最新評論