Knows Not Much Knows Not Much - 1 year ago 170
ASP.NET (C#) Question

RDLC Report Viewer Drill Through Report

I had posted this question on MSDN Forum

But I am not getting any response. Can you please help me. I am really stuck with this rather simple task.

My code seems to be correct but still I get the

A data source instance has not been supplied for the data source 'DataSet1_Order_Details'.

Sorry for the cross post...

Answer Source

I solved the error.

I was adding the data source like

(new RemoteDataSource("DataSet1_Order_Details", ObjectDataSource2.ID));

instead the data source should be added in the following manner

DataSet1TableAdapter.OrderDetails od = new DataSet1TableAdapter.OrderDetails();
((LocalReport) RemoteDataSource("DataSet1_Order_Details", od.get(orderid))

this resolved the issue and now I am able to have drill down in the ReortViewer report.

Regards, Abhishek

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download