I have a CR report that has a subreport linked dataset.xsd Need to know how to output the CR report and subreport to a CrystalReportViewer1. I have been able to push the data to see the main report but can't see the subreport data?
Dim conHaz As OleDbConnection = New OleDbConnection(ConfigurationSettings.AppSettings("strConn"))
Dim oleAdapter As New OleDbDataAdapter
'Main report
Dim RsPrintLableeRFD As New PrintLableeRFD
'Sub report
Dim RsPrintLabeeRFDChem As New PrintLabeleRFDChem
Dim strContentSQL As String
strSQL = " some sql statement"
oleAdapter.SelectCommand = New OleDbCommand(strSQL, conHaz)
oleAdapter.Fill(RsPrintLableeRFD, "PrintLableWebRFD")
Dim oRpt As eRFDLabel
oRpt = New eRFDLabel
oRpt.SetDataSource(RsPrintLableeRFD)
oRpt.SetDatabaseLogon("Admin", "")
??I think I must fill the subreport?
CrystalReportViewer1.ReportSource = oRpt
Please help I am new with .net and crystal report.
Dim conHaz As OleDbConnection = New OleDbConnection(ConfigurationSettings.AppSettings("strConn"))
Dim oleAdapter As New OleDbDataAdapter
'Main report
Dim RsPrintLableeRFD As New PrintLableeRFD
'Sub report
Dim RsPrintLabeeRFDChem As New PrintLabeleRFDChem
Dim strContentSQL As String
strSQL = " some sql statement"
oleAdapter.SelectCommand = New OleDbCommand(strSQL, conHaz)
oleAdapter.Fill(RsPrintLableeRFD, "PrintLableWebRFD")
Dim oRpt As eRFDLabel
oRpt = New eRFDLabel
oRpt.SetDataSource(RsPrintLableeRFD)
oRpt.SetDatabaseLogon("Admin", "")
??I think I must fill the subreport?
CrystalReportViewer1.ReportSource = oRpt
Please help I am new with .net and crystal report.