Reportviewer drill-through problem in asp.net 2.0

Discussion in 'ASP .Net' started by =?Utf-8?B?VG9tIERhbHNpbWVy?=, Jun 21, 2007.

  1. 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.
     
    =?Utf-8?B?VG9tIERhbHNpbWVy?=, Jun 21, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mrwoopey
    Replies:
    2
    Views:
    610
    Rowland Shaw
    Jul 9, 2003
  2. Harry
    Replies:
    0
    Views:
    414
    Harry
    Jul 22, 2003
  3. Replies:
    0
    Views:
    759
  4. Replies:
    0
    Views:
    824
  5. ArvindRavish
    Replies:
    0
    Views:
    582
    ArvindRavish
    Mar 12, 2008
Loading...

Share This Page