We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,434 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

rds report viewer overload error

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 (:

3
Contributors
3
Replies
2 Months
Discussion Span
2 Months Ago
Last Updated
11
Views
linezero
Light Poster
25 posts since Nov 2010
Reputation Points: 11
Solved Threads: 0
Skill Endorsements: 0

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

tinstaafl
Nearly a Posting Virtuoso
1,470 posts since Jun 2010
Reputation Points: 429
Solved Threads: 262
Skill Endorsements: 14

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?

juhus01
Newbie Poster
1 post since Mar 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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

tinstaafl
Nearly a Posting Virtuoso
1,470 posts since Jun 2010
Reputation Points: 429
Solved Threads: 262
Skill Endorsements: 14

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0632 seconds using 2.65MB