Specifies hierarchy print settings.
public class HierarchyPrintOptions : IHierarchyDataOptions
Public Class HierarchyPrintOptions Implements IHierarchyDataOptions
Set the HierarchyPrintOptions class' properties to print the Detail band's data in tree mode.
Specify the properties that define one of two supported data structure types:
Set the ChildListFieldName property to the name of the collection field that your data exposes.
Use the Indent property to specify the child level node offset in report units.
You may face two cases when hierarchically printed data do not fit a page:
|Left/None Anchor||Right and Both Anchor|
|KeepTogetherWithFirstChild = true||KeepTogetherWithFirstChild = false|
Hierarchical print mode supports expand/collapse modes. For this, specify the Detail band's DrillDownControl property. You can assign any control that is located in the Detail band to this property. For instance, you can add the XRCheckBox control to the Detail band and use it as a drill-down control.
You can use the CurrentRowHierarchyLevel variable in expressions to get the current hierarchy level's index. For example, you can use this variable to highlight hierarchy levels.
Sort fields are supported in hierarchical print mode. You can sort data on each hierarchy level.
You cannot use HierarchyPrintOptions if you use MultiColumn options.
Refer to the Create a Hierarchical Report topic for instructions on how to create a hierarchical report.
Online Example: How to Create a Hierarchical Report in Code