Click here to Skip to main content
15,891,427 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a student_teacher table in the following data.

ID ParentID Name
1 Root
2 1 Teacher
3 1 Student
4 2 Teacher1
5 2 Teacher2
6 3 Student1
7 3 Student2


Now i want to generate a CrystalReport in asp.net by using above table. My Crystal Rport will be as like..

Root
Teacher
Teacher1
Teacher2
Student
Student1
Student2

Thanks in adbance
Posted
Comments
Sergey Alexandrovich Kryukov 23-May-11 9:45am    
"Thanks in advance" for what kind of help? Where is your question?
--SA

You have not shared anything on what you have tried so far. So, 2 things:
1. You need to form proper query in a format that can be easily used in the report
2. You can also plan/think to use sub-report.

For Sub-reports in Crystal report, look here:
Adding a Subreport to the Original Report[^]
Creating Sub-Reports Using Crystal Reports[^]
Create a Subreport in Crystal Reports [^]

Few features step-by-step:
Introductions to Crystal Reports in .NET[^]
Step by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report[^]

Read & Try!
 
Share this answer
 
Use Groups in your report, that's all.

Crystal reports in ASP.NET[^](Step by step explanation regarding the same as your requirement)
 
Share this answer
 

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