Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using multiple datasets in RDLC

Tags:

c#

asp.net

rdlc

I am working on rdlc reports, and the reports work just fine. I got stuck when I added one more dataset to the rdlc file. On adding the dataset, it added a data source as well. I ran the project, and the report was no more working giving the error: A data source instance has not been supplied for the data source

Can some one please guide me on what steps to take in order to use multiple datasets. I am using Visual Studio 2012.

like image 821
Ali Shah Ahmed Avatar asked Jan 14 '23 18:01

Ali Shah Ahmed


1 Answers

Multiple Datasources are added as follows:

ReportViewer1.LocalReport.DataSources.Add(rdS);
ReportViewer1.LocalReport.DataSources.Add(rdS1);

Refer this link:

http://www.c-sharpcorner.com/UploadFile/robo60/StandaloneRDLCReports11142007183516PM/StandaloneRDLCReports.aspx

All the parts are covered in this.

Also refer this usefull discussion:

http://forums.asp.net/t/1241964.aspx

like image 177
Freelancer Avatar answered Jan 19 '23 00:01

Freelancer