471,850 Members | 1,223 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

ReportViewer:Data instance has not be supplied for DataSource

Hi All

I have designed a rdlc file, using Business Object and table control, and added it on Report Viewer control. I am facing the excepiton
Exception descritption: A data source instance has not been supplied for the data source 'Ebwl_eOBR_Library_PositionException_PositionExcep tionCollection'.

The code wriiten in C# on .cs file , to bind the data source with report is -

ReportDataSource rd = new ReportDataSource("ds1", PositionExceptionComponent.GetPositionExceptions() );
ReportViewer1.LocalReport.ReportPath = "C:\\Documents and Settings\\user\\Desktop\\CODE\\CODE SEPT 21\\sept 10\\Prudential[1].eOBR.PositionException\\Prudential.eOBR.PositionE xception\\PositionExceptionLibrary\\Prudentia\\R.r dlc";
ReportViewer1.LocalReport.DataSources.Add(rd);
ReportViewer1.DataBind();
ReportViewer1.LocalReport.Refresh();

Can anybody PLEASE tell me what would be the reason..

Thanks
Naveen Duggal
Sep 23 '07 #1
0 3569

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Mark | last post: by
reply views Thread by billygotee | last post: by
reply views Thread by =?Utf-8?B?VG9tIERhbHNpbWVy?= | last post: by
1 post views Thread by gandhi.vishal | last post: by
reply views Thread by YellowAndGreen | 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.