Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Reportviewer drill-through problem in asp.net 2.0

Reply
Thread Tools

Reportviewer drill-through problem in asp.net 2.0

 
 
=?Utf-8?B?VG9tIERhbHNpbWVy?=
Guest
Posts: n/a
 
      06-21-2007
Having trouble creating drill-through reports using reportviewer. Following
advice from http://www.codeproject.com/aspnet/Dr...oughReport.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(dsChi ld)
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ReportViewer and dynamic size with IE7 problem Chris Botha ASP .Net 0 12-30-2006 06:32 PM
Reportviewer problem =?Utf-8?B?QnJhZA==?= ASP .Net 2 02-14-2006 12:15 PM
ReportViewer/ObjectDatasource Problem =?Utf-8?B?SG91c3RvbiBMdWNpZmVy?= ASP .Net 0 12-24-2005 12:12 AM
ReportViewer problem after deploy Chris Botha ASP .Net 1 11-16-2005 07:34 PM
Problem With ReportViewer Object ajso via JavaKB.com Java 3 09-29-2005 08:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57