0
這是代碼:重載決策失敗,因爲沒有可訪問的「新」是最具體的這些參數
If ComboBox1.Text = "Total profil for all time" Then
Dim TA As New CPDBTableAdapters.TotalProfilForAllTimeTableAdapter
Dim TmpDS As New CPDB
TA.Fill(TmpDS.TotalProfilForAllTime)
'obriši prošli DS
RV.LocalReport.DataSources.Clear()
'dodaj novi DS
Dim RDS As New Microsoft.Reporting.WinForms.ReportDataSource("", TmpDS.TotalProfilForAllTime)
RV.LocalReport.DataSources.Add(RDS)
RV.LocalReport.ReportEmbeddedResource = "change_password.report1.rdlc"
RV.RefreshReport()
End If
問題是在這裏:
Dim RDS As New Microsoft.Reporting.WinForms.ReportDataSource("",
TmpDS.TotalProfilForAllTime)
錯誤消息: 重載決策失敗,因爲沒有可訪問的'new'對於這些論點來說是最具體的。
「TmpDS.TotalProfilForAllTime」的類型是什麼? – 2014-10-07 21:00:08
TotalProfilForAllTime是tableadapter,TmpDs。 (Dim TmpDS As New CPDB) – 2014-10-07 21:06:22