J
jay
I saw an example somewhere that looked like this:
Me.ReportViewer1.Reset()
Me.ReportViewer1.ProcessingMode =
Microsoft.Reporting.WinForms.ProcessingMode.Local
Dim newDS As New
Microsoft.Reporting.WinForms.ReportDataSource("myDataSet.Customer")
newDS.Value = Me.CustomerBindingSource
Me.ReportViewer1.LocalReport.DataSources.Add(newDS)
Me.ReportViewer1.LocalReport.ReportEmbeddedResource =
"myApp.rpt_Customer.rdlc"
Me.ReportViewer1.RefreshReport()
The problem is I still receive the message "A Data Source instance has not
been supplied for the data source "myDataSet.Customer") The dataset and
bindsource exist on the form. Any ideas?
Me.ReportViewer1.Reset()
Me.ReportViewer1.ProcessingMode =
Microsoft.Reporting.WinForms.ProcessingMode.Local
Dim newDS As New
Microsoft.Reporting.WinForms.ReportDataSource("myDataSet.Customer")
newDS.Value = Me.CustomerBindingSource
Me.ReportViewer1.LocalReport.DataSources.Add(newDS)
Me.ReportViewer1.LocalReport.ReportEmbeddedResource =
"myApp.rpt_Customer.rdlc"
Me.ReportViewer1.RefreshReport()
The problem is I still receive the message "A Data Source instance has not
been supplied for the data source "myDataSet.Customer") The dataset and
bindsource exist on the form. Any ideas?