Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 77745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:52:43+00:00 2026-05-10T20:52:43+00:00

Does anyone know of a way to represent a tree structure in Crystal Reports?

  • 0

Does anyone know of a way to represent a tree structure in Crystal Reports? My big issue is that I don’t know the depth of the tree. It is represented in a database table with a simple ‘childId -> parentId’ relationship.

A perfect example would be to open Windows Explorer, and look at the directory tree on the left side. If anyone knows a way to represent that tree, then it’ll work for what I need to do too.

My initial attempts have been:

1) to programatically (in C#) add Groups to the report. Unfortunately, you can’t create a new instance of the Group class and add it to the Groups collection.

2) recursively nest the same report into itself for each level. In other words:

mainReport   subReport     subReport     subReport   subReport   subReport     subReport 

etc…

Unfortunately, SubReports can’t contain SubReports.

I really don’t want to just add X number of groups into a report and hide the ones I don’t need, because I’d have to add a fixed number of nested groups, but technically the data design can support an infinite depth, even though in practice we see up to about 5 levels of depth.

So, any other ideas?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:52:43+00:00Added an answer on May 10, 2026 at 8:52 pm

    Crystal XI added hierarchical grouping. You’ll find this under the Reports menu. I put together a quick org chart report with n-level depth using this. The database table is like: id name managerId

    In the Crystal Report, you select these columns, group by id. Then under ‘Hierarchical Grouping options’ menu under Reports, check off ‘Group Data Hierarchically’, parent Id managerId, and indent appropriately.

    The output is like the tree you described in Explorer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know a way to display code in Microsoft Word documents that preserves
Hi there does anyone know a way, programatically or using a tool, that I
Does anyone know any way that I can use javascript to check when the
Does anyone know a way to have two columns in a SP2010 list that
Does anyone know a way to auto-generate database tables for a given class? I'm
Does anyone know a way to find out programatically which physical disk holds a
does anyone know a way to call a generic method of a base class
Does anyone know a way to open up an instance of the operating system
Does anyone know a way to open a 2nd form in a .NET application
Does anyone know a way to get the mean amplitude of a .wav file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.