EMPLOYEE HIERARCHY
Demonstrates how to print a hierarchic list.

To create hierarchy, the FastReport engine needs two values: the row ID and its parent row ID. In this report, the row ID is represented by the Employee.EmployeeID column; its parent row is Employees.ReportsTo column. To create the report:

- select the databand and go to the Properties window;

- set the "IdColumn" property to "Employee.EmployeeID";

- set the "ParentIdColumn" property to "Employee.ReportsTo";

- the "Indent" property will be used to shift the databand rows according to hierarchy level. Set it to a desired value.

Learn how to build this report on the Fast Reports Academy channel
 
Andrew Fuller
 
 
Vice President, Sales
 
Janet Leverling
 
 
Sales Representative
 
Margaret Peacock
 
 
Sales Representative
 
Steven Buchanan
 
 
Sales Manager
 
Anne Dodsworth
 
 
Sales Representative
 
Michael Suyama
 
 
Sales Representative
 
Robert King
 
 
Sales Representative
 
Laura Callahan
 
 
Inside Sales Coordinator
 
Generated by FastReport .NET