Displaying main report with subreport

102 views Asked by At

The following is my code and it is working with only one report.

rptbill = New CrystalReport1
rptexp = New ExpensesReport
rptmain = New MAINREPORT

rptbill.SetDataSource(dtincom)
rptexp.SetDataSource(dtexp)
frmCrystalReport.CrystalReportViewer1.ReportSource = rptmain

What I want is that my rptmain shows the field of my submenus rptbill and rptexp. I don't know how to get this to work.

0

There are 0 answers