Hi all
I have a large project that was written in VB.Net 2002 and I converted it to 2005.
Oh boy did I get a lot of errors and warnings!
My biggest problem so far is dealing with crystal reports and the SetDataSource.
Here is my error:
Error 107 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.
'Public Overridable Sub SetDataSource(enumerable As System.Collections.IEnumerable)': Not most specific.
And here is example of code taking error - the bold text is generating the error:
================================================
Dim conn As New SqlClient.SqlConnection(WindowsDBConnect(eubDB))
Dim cmd As New SqlClient.SqlCommand()
Dim da As New SqlClient.SqlDataAdapter()
Dim ds As New dsRptEUBCompCompare.EUB_CompanyDataTable()
Dim rpt As New rptEUBCompCompareAba()
conn.Open()
cmd.Connection = conn
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "eub_comp_compare_aba_QRY"
da.SelectCommand = cmd
da.Fill(ds)
ClearMessage(Me, Me)
rpt.SetDataSource(ds)
==========================================
I am not really sure what to do. Any suggestions?
Thanks!
I have a large project that was written in VB.Net 2002 and I converted it to 2005.
Oh boy did I get a lot of errors and warnings!
My biggest problem so far is dealing with crystal reports and the SetDataSource.
Here is my error:
Error 107 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.
'Public Overridable Sub SetDataSource(enumerable As System.Collections.IEnumerable)': Not most specific.
And here is example of code taking error - the bold text is generating the error:
================================================
Dim conn As New SqlClient.SqlConnection(WindowsDBConnect(eubDB))
Dim cmd As New SqlClient.SqlCommand()
Dim da As New SqlClient.SqlDataAdapter()
Dim ds As New dsRptEUBCompCompare.EUB_CompanyDataTable()
Dim rpt As New rptEUBCompCompareAba()
conn.Open()
cmd.Connection = conn
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "eub_comp_compare_aba_QRY"
da.SelectCommand = cmd
da.Fill(ds)
ClearMessage(Me, Me)
rpt.SetDataSource(ds)
==========================================
I am not really sure what to do. Any suggestions?
Thanks!