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.
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.