1.11M Members

rds report viewer overload error

 
0
 

I'm currently working on a project on VB.NET and I'm getting this error below.

Error 2 Overload resolution failed because no accessible 'New' is most specific for these arguments:
'Public Sub New(name As String, dataSourceValue As System.Collections.IEnumerable)': Not most specific.
'Public Sub New(name As String, dataSourceValue As System.Data.DataTable)': Not most specific. C:\Users\user\Desktop\POS\GUI\MainWindow.vb 279 17 POS

below here is the code which actually the errors takes.

Dim RDS As New Microsoft.Reporting.WinForms.ReportDataSource("POSDS_TotalProfitForAllTime", TmpDS.TotalProfitForAllTime)

            ' tell the report control to use the DS, and 
            ' use the report template created by us.
            RV.LocalReport.DataSources.Add(RDS)
            RV.LocalReport.ReportEmbeddedResource = "POS.TotalProfitForAllTime.rdlc"
            RV.RefreshReport()

Helping to solve this issue is greatly appericiated (:

 
0
 

how is tmpds declared? is totalprofitforalltime a datatable or an ienumerable collection? If not then you'll get that error.

 
0
 

Same problem. could not find the solution, so i went back installing vs2008 where this problem is not exisintg. it is there with vs2010....but does anyone has the solution for 2010?

 
0
 

how is tmpds declared? is totalprofitforalltime a datatable or an ienumerable collection? If not then you'll get that error.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: