We will introduce Data Display Format – Style of FineReport reporting software in this article.The data style obtained from the data table is not the desired style.In this case, it is necessary to set the display style of the cell.

1. Description

The data style obtained from the data table is not the desired style.

For example, the Arrival Date is changed in a format of year, month, day, and a symbol of “¥” is added before Freight Charge, as shown below:

In this case, it is necessary to set the display style of the cell. Here is a simple example to show the method of changing data display style.

2. Realization Steps

2.1 Open report

Open the report of %FR_HOME%\WebReport\WEB-INF\reportlets\doc\Primary\DetailReport\Details_1.cpt

2.2 Change the style of Arrival Date

Select data column cell of Arrival Date, right click to select Menu Style > Custom Style > Format, or directly select Cell Attribute Table – Style > Custom Style > Format in the Cell Attribute panel on the right and select Date Type to change it to YYYY, MM, DD, as shown below:

2.3 Change style of freight charge

Select data column cell of Freight Charge, right click to select Menu Style > Custom Style > Format, and select Currency, as shown below:

Users can define display modes of the actual values of cells, such as number and date through style without changing the actual values.See more styles

3. Save and issue reports

For completed templates, refer to %FR_HOME%\WebReport\WEB-INF\reportlets\doc\Primary\DetailReport\Details_2.cpt

Click Details_2.cpt to check template effect online.