0

我在这里想要的是,第一页上某些 x 条记录的条形图,然后下一页上的下 x 条记录,依此类推。我为此搜索了很多,但没有找到确切的解决方案。Jasper Reports 甚至有可能吗

4

1 回答 1

2

您可以通过使用报告组来做到这一点。

在 iReport 中打开您的报告。

 1:-Open report and in Report inspector right click and select "Add Report Group"

 2:-Give any name  (eg. splitter) and 
    select "Group by the following expression" and enter
           $V{REPORT_COUNT} - 1 - ( ($V{REPORT_COUNT} - 1) % 3 ). 
  (here 3 means 3 bars in a page)

 Click next and select  Add the group footer.

 3:- Open palette and drag and drop a chart element from the Palette into 
     the report designer on the group footer band. 

 4:- Select Bar Chart, follow the wizard: 
     a:- "Reset type" = Group

     b:- "Reset group" = splitter
               (same name what you gave at the time of Report data set creation)

     c:- add series in Details tab.

见图表

在此处输入图像描述

于 2013-03-12T06:04:38.127 回答