- Pentaho 5.0 Reporting by Example
- Mariano García Mattío Dario R. Bernabeu
- 374字
- 2021-08-13 16:24:35
Time for action – configuring the Report Header and Details Header sections
In the ensuing steps, we will configure the Report Header and Details Header sections so that it looks as follows:

- In the Report Header section, we will add a label with the header text.
- To do this, we must drag-and-drop the insertable object
Label
(); this means that we need to drag it and release it in the work area that belongs to the Report Header section. Next, we will configure this label so it includes the text First Report: Hello World in bold face, centered, and large font size.
- To do so, we will select the label we just added in the work area and configure its Attributes and Style properties.
- In the Attributes tab, as the value of the characteristic value, we enter
First Report: Hello World
. - In the Style tab, as the value of the bold characteristic, we enter
true
. - In the Style tab, as the value of the font-size characteristic, we enter
20
. - In the Style tab, as the value of the h-align characteristic, we enter
CENTER
.Note
From now on, to indicate that a certain value should be entered in a certain characteristic of Attributes or Style, we will use the following notations:
Attributes.value =
First Report: Hello World
Style.bold =
true
Style.font-size =
20
Style.h-align =
CENTER
- We will make the Details Header section visible in our report. The Details Header section is commonly used to place information of what you will see in Details.
- Go to the tab structure, and in the hierarchical tree, navigate to Master Report | Group: | Details Body | Details Header. Then set Attributes.hide-on-canvas to false as shown in the following screenshot:
- Place three labels in the work area of this section (by dragging-and-dropping) with the following text:
Location
Article
Qty of Sales
- Finally, configure the following characteristics:
- Style.font-size = 12
- Style.bold =
true4
. We insert a horizontal line () under the preceding labels and configure it in the following way:
- Style.stroke =
solid, 4.0
- Style.text-color =
#009933
What just happened?
We customized the report's Report Header and added and configured a title. Also, in the Details Header section we added and configured three column headings and a horizontal line.
推薦閱讀
- AutoCAD 2016中文版繪圖基礎(chǔ)傻瓜書
- SAP ECC 5.0/6.0 總賬系統(tǒng)應(yīng)用指南(第2版)
- Office 2013輕松辦公:Word/Excel/PowerPoint三合一超級應(yīng)用大全(實戰(zhàn)案例版)
- 零基礎(chǔ)學(xué)Python
- Word/Excel 2010辦公應(yīng)用實戰(zhàn)從入門到精通
- 中文版AutoCAD 2016園林設(shè)計從入門到精通
- 基于BIM的Revit機電管線設(shè)計案例教程
- PowerPoint 2010精美幻燈片制作
- 巧學(xué)巧用Excel:迅速提升職場效率的關(guān)鍵技能
- 用圖表說話:Excel精美實用圖表大制作
- 新編電腦辦公(Windows 7 + Office 2016版)從入門到精通
- Excel 2007使用大全
- Access快速開發(fā)基礎(chǔ)教程
- Office 2013從新手到高手(超值版)
- Excel 2010 SQL完全應(yīng)用