Pentaho Report Designer

653 阅读1分钟

下载

点我

配置

  1. 安装JDK
  2. JAVA_HOMEPATH变量配置

启动

shell> cd [PRD_HOME]
shell> ./report-designer.sh

In Windows environments: Go to the folder [PRD_HOME] and execute (press Enter or double-click on) the file reportdesigner.bat

Paste_Image.png

启动中界面。

Paste_Image.png

启动成功界面。

新建报表

![image]

Paste_Image.png

设置报表名称及保存位置

扩展名一般以.prpt结尾

Paste_Image.png

报表结构,默认分为5个部分

  • Page Header
  • Report Header
  • Details
  • Report Footer
  • Page Footer

新建数据集 必需-报表数据来源

pentaho 提供多种数据源选择,如图

Paste_Image.png

一般我们使用jdbc/jndi - MySQL

  1. 新建Connections
  2. 新建查询语句Query,预览结果

配置报表HeaderDetails

中文字体一定要选择宋体!!!

中文字体一定要选择宋体!!!

中文字体一定要选择宋体!!!

(重要的事情说3遍!!!否则上传到服务器BA Server报表无法正常显示中文。)

设置元素的样式及属性,可选是否显示Details HeaderDetails Footer

添加函数

  1. 设置表格条纹,让其奇偶行背景色不相同(Row Binding函数)。

Paste_Image.png

  1. 底部显示统计数据(Count(Running)函数)。

Paste_Image.png

高级使用

添加查询参数

Paste_Image.png

绘制图标

Paste_Image.png