qberta01
Programmer
- Nov 14, 2005
- 113
Hello,
I have an app written in VS 2005 using VB. It creates two datasets. One dataset populates the main crystal report and the other populates the main report's subreport. I have read everything there is about how to get this to work, but it doesn't. My subreport comes up empty - it doesn't load.
This is the code I have been using:
Dim da_detail As New DataSet
Dim da_billing As New DataSet
....call code to fill datasets
Dim CRYRpt1 As New CryReport
CRYRpt1.SetDataSource(da_billing.Tables(0))
CRYRpt1.Subreports("CrySubreport.rpt").SetDataSource(da_detail.Tables(0))
CoxReportViewer.ReportSource = CRYRpt1
----------------------------------------------
The main report populates just fine, but no the subreport.
If anyone can help I would be oh so happy!
Thx,
Q.
I have an app written in VS 2005 using VB. It creates two datasets. One dataset populates the main crystal report and the other populates the main report's subreport. I have read everything there is about how to get this to work, but it doesn't. My subreport comes up empty - it doesn't load.
This is the code I have been using:
Dim da_detail As New DataSet
Dim da_billing As New DataSet
....call code to fill datasets
Dim CRYRpt1 As New CryReport
CRYRpt1.SetDataSource(da_billing.Tables(0))
CRYRpt1.Subreports("CrySubreport.rpt").SetDataSource(da_detail.Tables(0))
CoxReportViewer.ReportSource = CRYRpt1
----------------------------------------------
The main report populates just fine, but no the subreport.
If anyone can help I would be oh so happy!
Thx,
Q.