1,105,395 Community Members

rds report viewer overload error

Member Avatar
linezero
Light Poster
25 posts since Nov 2010
Reputation Points: 1 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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 (:

Member Avatar
tinstaafl
Postaholic
2,012 posts since Jun 2010
Reputation Points: 559 [?]
Q&As Helped to Solve: 402 [?]
Skill Endorsements: 35 [?]
 
0
 

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

juhus01
Newbie Poster
1 post since Mar 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
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?

Member Avatar
tinstaafl
Postaholic
2,012 posts since Jun 2010
Reputation Points: 559 [?]
Q&As Helped to Solve: 402 [?]
Skill Endorsements: 35 [?]
 
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 three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: