471,123 Members | 866 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

Reusable reporting form and VS2005 report

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("myD ataSet.Customer")

newDS.Value = Me.CustomerBindingSource

Me.ReportViewer1.LocalReport.DataSources.Add(newDS )

Me.ReportViewer1.LocalReport.ReportEmbeddedResourc e =
"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?
Jun 21 '07 #1
1 1186
jay
Solved it. Changed myDataSet.Customer to myDataSet_Customer

"jay" <jj**@hotmail.comwrote in message
news:fO******************************@giganews.com ...
>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("myD ataSet.Customer")

newDS.Value = Me.CustomerBindingSource

Me.ReportViewer1.LocalReport.DataSources.Add(newDS )

Me.ReportViewer1.LocalReport.ReportEmbeddedResourc e =
"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?


Jun 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Paul Say | last post: by
5 posts views Thread by John | last post: by
1 post views Thread by John | last post: by
6 posts views Thread by Bob Alston | last post: by
3 posts views Thread by =?Utf-8?B?QS4gUm9iaW5zb24=?= | last post: by
3 posts views Thread by =?Utf-8?B?Sm9uIEphY29icw==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.