Reusable reporting form and VS2005 report

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top