To indent a hierarchy without affecting other fields

  1. Right-click the field that you grouped hierarchically, and select Size and Position.
  2. Click the Conditional Formula button next to the X position value field.
  3. In the Formula Workshop, enter your conditional X position formula text.

    For example, enter formula text such as this:

    numbervar hLevel := HierarchyLevel (1);
    numbervar deltaX := 0;
    if (hLevel > 1) then
        deltaX := (hLevel - 1) * 0.4;
    deltaX := deltaX * 1440;

    Search the online help for "HierarchyLevel (GroupingLevel)" to learn more about the function used in this example.

  4. Click Save and close to return to your report.
  5. Click OK to save your position setting.

Crystal Reports moves the values in your hierarchical data to new positions based on their level in the hierarchy, but leaves other objects that are on the same lines where you originally placed them.