Click here to Skip to main content
15,891,621 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a Table with following data
ID         Name             ParentID
1          Siang             null
2          jiang             1
3          sinkiong          1
4          shuinlee          1
5          Kao               3
6          mao               5


Now i want to create a family tree in report likes this
I am using c# windows form application..
http://www.yangfamilytaichi.com/yang/tree/images/familytree.jpg[^]
Can any one help me....
Posted
Updated 10-Aug-13 23:22pm
v3
Comments
Maciej Los 11-Aug-13 4:41am    
Not enough information to post exact answer (WinForms? WebControls? WPF?). Please, see my answer.

1 solution

You did not specify a technology you want to use, so this answer is a general answer (see my comment to the question). But before, one little tip: i would suggest you to use SearchBox[^] (on the right-top corner of this site) before you ask a question. Please, read QA rules[^], especially - rule no. 4.

Crystal report does not supports data presentation in a graph form. Crystal report supports grouping to display hierarchical data in a similar way how it displays a tree control.
Grouping Data Hierarchically[^]

Also, you can display hierarchical data in a TreeView control too.
Walkthrough: Displaying Hierarchical Data in a TreeView Control[^]
How to print treeview?[^]

But i would suggest you to create custom graph, for example: Building an oriented graph in a graphical application[^]

For further information, please, see:
Cyclomatic complexity[^]
Part 5: From Trees To Graphs - An Extensive Examination of Data Structures Using C# 2.0[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900