How to Use Excel Spreadsheet to Realize the Circulation Expansion Report of Pure Form

Scene description

When making reports, we will encounter when making circular reports. The cyclic expansion report is a type of report that automatically expands multiple tables in a cycle according to a specified field. It is mainly divided into pure form cycle expansion and graphics cycle expansion.

Let's talk about how to use the report designer to implement a pure form loop. As shown in the figure below, there are many employee information description data. It is hoped that all the data of the object can be displayed in one table, and the report layout is multiple tables with upper and lower paragraph layouts, and each table has the same structure.

Implementation steps

1. Create a data set to query the data. This type of report usually uses a data set to find out the detailed data or directly uses the detailed data in the database. The following is the detailed data found through the data set: image.png

2. Log in to the Excel report designer---Smartbi to set the fixed content of the table. Enter the corresponding content in the cell:

Enter "employee information" in cell A1, its style: font "HeiTi", font size "11", font color "black";

A2 enters "employee name", A3 enters "age", A4 enters "date of birth", C2 enters "employee ID", C3 enters "phone", C4 enters "entry date", E2 enters "gender", E3 enters "Email" ", E4 input "address", its style: font "black and bold", font size "9", font color "black"; image.png

3. Drag the field from the data set on the right to the corresponding cell:

"Name" to cell B2,

"Age" to Unit B3,

"Employee's Birthday" to cell B4,

"Employee Number" to cell D2,

"Home Phone" to cell D3,

"Entry Date" to cell D4,

"Sex" to cell F2,

"Mailbox" to cell F3,

"Employee Address" to cell F4;

4. Set the parent cell attributes.

Cell B2 keeps the system default parent cell;

For cells other than B2 in the table, set subsidiary attributes: the upper parent cell is B2 or the left parent cell is B2;

In the cell range "A5: F5", set subsidiary attributes: the upper parent cell is B2 or the left parent cell is B2;

The settings of steps 2 and 3 can be realized. As the employee expands and one is added, an information bar will be added to record the employee's information.

5. Set the table style

The fill color of the cell range "A1: F1": #66ABC5;

Fill color of the cell where other fixed fields are located: #CFE3E7;

Employee information font style: font "black", font size "11", font color "white", displayed on the left;

Other cell font styles: font "black and bold", font size "9", font color "black", centered display;

Border: color "#66ABB3", size "1px";

Adjust column width and row height;

6. Complete the report customization, save and publish, and then browse on the web.

The focus of this report implementation is the setting of the parent grid. The table data can be expanded with the expansion of the parent grid by customizing the parent grid.

The above operations are done based on the Smartbi report designer. Friends who are interested can log in to the Smartbi official website to experience it by themselves.

Guess you like

Origin blog.51cto.com/14966774/2542803