G
Guest
In upgrading a Windows Forms project from 2003 to 2005 in VB.Net, I have
errors in setting the datasource for all of my embedded Crystal Report
objects.
What was working in 1.1 was
If Me.myDataAdapter.Fill(Me.myDataSet.myDataTable) > 0 Then
Dim oRpt As ReportClass = New myReport
oRpt.SetDataSource(Me.myDataSet.myDataTable)
Me.CrystalReportViewer1.ReportSource = oRpt
Return
Else : GoTo NODATA
End If
On conversion, every one of these method calls gives the error:
error BC30521: Overload resolution failed because no accessible
'SetDataSource' is most specific for these arguments:
'Public Overridable Sub SetDataSource(dataTable As
System.Data.DataTable)': Not most specific.
Any help on how to fix this would be appreciated. Thanks.
errors in setting the datasource for all of my embedded Crystal Report
objects.
What was working in 1.1 was
If Me.myDataAdapter.Fill(Me.myDataSet.myDataTable) > 0 Then
Dim oRpt As ReportClass = New myReport
oRpt.SetDataSource(Me.myDataSet.myDataTable)
Me.CrystalReportViewer1.ReportSource = oRpt
Return
Else : GoTo NODATA
End If
On conversion, every one of these method calls gives the error:
error BC30521: Overload resolution failed because no accessible
'SetDataSource' is most specific for these arguments:
'Public Overridable Sub SetDataSource(dataTable As
System.Data.DataTable)': Not most specific.
Any help on how to fix this would be appreciated. Thanks.