Can Crystal Reports .NET use an ADO recordset?


In the VB6 Development environment you could feel an ADO 2.6 recordset into a crystal report like so:

'---set the data source to an ADO recordset
Dim crMyReport as New rptMembershipRoster
crMyReport.Database.Tables(1).SetDataSource rsReportData, 3
'---show the report in a Report viewer
CRViewer1.ReportSource = crMyReport
CRViewer1.ViewReport


Can you do this in the .NET Crystal Reports Designer? If so, what is the syntax?
LVL 4
brokeMyLegBikingAsked:
Who is Participating?
 
Éric MoreauSenior .Net ConsultantCommented:
You need to switch to a dataset:

Me.ReportToPrint.SetDataSource(Me.mdtsDataSet)
CrViewer.ReportSource = Me.ReportToPrint
0
 
brokeMyLegBikingAuthor Commented:
Is there a fast way to feel an ADO recordset into a Dataset?

0
 
brokeMyLegBikingAuthor Commented:
excellent!
0
All Courses

From novice to tech pro — start learning today.