Reportviewer drill-through problem in asp.net 2.0


G

Guest

Having trouble creating drill-through reports using reportviewer. Following
advice from http://www.codeproject.com/aspnet/DrillThroughReport.asp . Here
is my vbcode:

Partial Class Testing_RepDriver
Inherits System.Web.UI.Page


Protected Sub ReportViewerParent_Drillthrough(ByVal sender As Object,
ByVal e As DrillthroughEventArgs) Handles ReportViewer1.Drillthrough
Dim DrillThroughValues As ReportParameterInfoCollection =
e.Report.GetParameters()
Dim dsChild As ReportDataSource = New
ReportDataSource("Invoice_TB_WEB_INVOICE", Me.ChildDS.ID)


For Each d As ReportParameterInfo In DrillThroughValues
Me.HiddenFieldInvoice.Value = d.Values(0).ToString().Trim()
Next
Me.ReportViewer1.LocalReport.ReportPath =
"C:\Webs\V1\App_Code\Invoicedrill.rdlc"
Me.ReportViewer1.LocalReport.DataSources.Clear()
Me.ReportViewer1.LocalReport.DataSources.Add(dsChild)
Me.ReportViewer1.LocalReport.Refresh()
End Sub

I get the following error:

· A data source instance has not been supplied for the data source
'Invoice_TB_WEB_INVOICE'

The datasource name is correct. Any assistance is appreciated.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top