469,579 Members | 1,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

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 3497

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
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.