Victor Charles
asked on
Help with Report Viewer in VS2013
Hi,
My project was running ok in VS20010, however when trying to run the same project in VS2013, I receive
error message: Microsoft.Reporting.WinFor ms.ReportD atasource is not defined.
on line: Dim reportDataSource As New Microsoft.Reporting.WinFor ms.ReportD ataSource( )
What do I need to import in VS2013 to solve this error?
Code:
Dim reportDataSource As New Microsoft.Reporting.WinFor ms.ReportD ataSource( )
reportDataSource.Name = "DataSet1"
reportDataSource.Value = FilteredDT
ReportViewer1.LocalReport. DataSource s.Clear()
ReportViewer1.LocalReport. DataSource s.Add(repo rtDataSour ce)
ReportViewer1.LocalReport. Refresh()
ReportViewer1.RefreshRepor t()
Thanks,
Victor
My project was running ok in VS20010, however when trying to run the same project in VS2013, I receive
error message: Microsoft.Reporting.WinFor
on line: Dim reportDataSource As New Microsoft.Reporting.WinFor
What do I need to import in VS2013 to solve this error?
Code:
Dim reportDataSource As New Microsoft.Reporting.WinFor
reportDataSource.Name = "DataSet1"
reportDataSource.Value = FilteredDT
ReportViewer1.LocalReport.
ReportViewer1.LocalReport.
ReportViewer1.LocalReport.
ReportViewer1.RefreshRepor
Thanks,
Victor
ASKER
How do you update the Report Viewer packages using NuGet?
Thanks,
V.
Thanks,
V.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was able to install the ReportViewer online but now receiving error message" ReportViewer1 is not accessible, it may be inaccessible due to protection level. Error occurs on the following lines:
ReportViewer1.LocalReport. DataSource s.Clear()
ReportViewer1.LocalReport. DataSource s.Add(repo rtDataSour ce)
ReportViewer1.LocalReport. Refresh()
ReportViewer1.RefreshRepor t()
Thanks,
V
ReportViewer1.LocalReport.
ReportViewer1.LocalReport.
ReportViewer1.LocalReport.
ReportViewer1.RefreshRepor
Thanks,
V
try to see if you got similar error when you create a new report viewer in a now form?
ASKER
It works!
Thanks,
Victor
Thanks,
Victor
you may also go to NuGet Package Manager to update the Report Viewer packages.