The
KeepVisibleHierarchy property is used to:
- Find out which elements of the TreeView table will be printed: printing the entire hierarchy or printing the hierarchy that is visible in the control.
- Modify the print mode of the hierarchy: printing the entire hierarchy or printing the hierarchy that is visible in the control.
This property can only be used in the opening code of a "Report on TreeView Table" report.
// -- Opening code of the report
// Prints the visible hierarchy only
RPT_Report1.KeepVisibleHierarchy = True
// -- Opening code of the report
// Prints the entire hierarchy
RPT_Report1.KeepVisibleHierarchy = False
Syntax
Finding out the print mode of the hierarchy Hide the details
<Result> = <Report used>.KeepVisibleHierarchy
<Result>: Boolean
- True if the report will print the hierarchy rows currently displayed in the TreeView Table control,
- False if the report will print all the hierarchy rows displayed in the TreeView Table control.
<Report used>: Report name
Name of the "Report on TreeView Table" report to use.
Modify the print mode of the hierarchy Hide the details
<Report used>.KeepVisibleHierarchy = <Type of print>
<Report used>: Report name
Name of the "Report on TreeView Table" report to use.
<Type of print>: Boolean
- True to print the hierarchy rows currently displayed in the TreeView Table control,
- False to print all the hierarchy rows displayed in the TreeView Table control.
Remarks
The KeepVisibleHierarchy property applies only to "Report on TreeView Table" reports and can only be used in the opening code of the report.