Sub-Report In Crystal Report In C#

In this blog, we will learn about Crystal Report and Sub-Report in C# Windows application.
 
You can learn about Crystal Report from the below article.
 
http://www.c-sharpcorner.com/UploadFile/1b29b1/student-result-application-in-windows-C-Sharp-with-crystal-report/
 
For Sub-Reports, create one Crystal Report with dataset and table bindings. Then, follow the below steps.
  1. Create the report with datafields.
  2. Include the report in another report as in below figure.
Here is the report that we want to include in the main report.


I have created a dummy data report but you can create a real data report.
 
Now, here is the main report



In this report, right click on the page header section. A dialog box will appear. Click on Insert >> SubReport.
A new box will appear on mouse hover. Just keep that box in the right place.  After clicking, another box will appear. There, select the report. 



Now, all the work is done here. Just click on Preview or run the application. You will see the subReport  contents on this report.
Ebook Download
View all
Learn
View all