473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 3658

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

Similar topics

0
by: Mark | last post by:
Hello, How do I change the report that is displayed in a reportviewer control programmatically? Do I also have to change the reportviewer datasource? Thanks in advance!
1
by: Rich | last post by:
Hello, I am trying to use the Reportviewer control. I have been following an example from the web, and the instructions from the help files on set up a ..rdlc and binding it to the reportviewer...
0
by: billygotee | last post by:
Hi, I posted an issue previously that was entirely accurate. I have a master report called "MasterReport.rdlc" and a subreport called "Subreport.rdlc". MasterReport.rdlc has a single subreport...
3
by: KimberlyLord | last post by:
I have created a report and subreport in VB/ASP.NET. The report works fine but the subreport will not display. The subreport, when displayed as a standalone report, works fine. But when viewed as a...
1
by: GSReddy | last post by:
Hi I am trying to build bar chart in asp.net using ReportViewer data control with some sample data write here. string name = new string{"Trans", "DAS", "Lap H/w", "Lap S/w", "People"}; int val =...
0
by: =?Utf-8?B?VG9tIERhbHNpbWVy?= | last post by:
Having trouble creating drill-through reports using reportviewer. Following advice from http://www.codeproject.com/aspnet/DrillThroughReport.asp . Here is my vbcode: Partial Class...
10
by: AG | last post by:
I am trying to use a ReportViewer control in a VS 2005 web application project (not Website project). When I try to create a new report (local), I can't seem to find any method to create a...
1
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the...
0
by: abdulazees | last post by:
when click button i want to print autometicaly reportveiwer data, i not need to show reportviewer.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.