1
votes

I had created the Drill through (Textbox Property -> Action -> Go to report) RDLC Report and the steps given in below site,

msdn.microsoft.com/en-us/library/dn154774.aspx

But I am getting the following error while navigating the Report 1 to Report 2.

A data source instance has not been supplied for the data source 'Tenant'

Screenshots

Screen-shot 1

Screen-shot 2

2

2 Answers

3
votes

A bit late, but maybe it will be useful for someone else. When in the reportviewer there is a jump to other report (detail report) you need to add the DataSource for the detail report. You can do this easily by implementing the event method 'Drillthrough'. Go to the events of your reportViewer instance, create the method, and add a code like this:

private void reportViewer1_Drillthrough(object sender, DrillthroughEventArgs e)
    {
        Microsoft.Reporting.WinForms.ReportDataSource dataSrc = new Microsoft.Reporting.WinForms.ReportDataSource();
        dataSrc.Name = "DataSet1";
        dataSrc.Value = this.DataTable1BindingSource;

        LocalReport localReport = (LocalReport)e.Report;
        localReport.DataSources.Add(dataSrc);
    }

Please notice that the data source is being added to the report of the event parameter 'e'. Not to the local report of the your reportViewer

0
votes

As per the issue description,it seems that You have not initialized the datasets of Report2 through .Net code. The way you are initializing datasets of reportt1, at the same time and same way initialize the datasets of reportt2 as well.