Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to display a report that contains a subreport by using the ReportViewer control in Visual Studio

Reply
Thread Tools

How to display a report that contains a subreport by using the ReportViewer control in Visual Studio

 
 
Sheena Abraham
Guest
Posts: n/a
 
      11-29-2007

Hi Guys,

I am sure all of you in this thread have found a solution for this
problem.

I have tried the following:
in the button click as I have a parameter to select the Main report
data.

Buttonclick event :
--------------------
{
Code here....

RvMemberInfo.LocalReport.DataSources.Add(new
ReportDataSource("MembersInformationDataSet_GetMem berByID",
this.ShowMemberDetails.ID));
RvMemberInfo.LocalReport.SubreportProcessing += new
SubreportProcessingEventHandler(SetSubDataSource);
RvMemberInfo.LocalReport.Refresh();
}

public void SetSubDataSource(Object sender ,
SubreportProcessingEventArgs e )
{
e.DataSources.Add(new
ReportDataSource("MemberInformationDataSet_GetMemb erActivitiesByMemberID
",
this.ShowMemberActivities.ID));
}

Any help or suggestions will be really helpful.

Sheena


*** Sent via Developersdex http://www.developersdex.com ***
 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
ReportViewer 2010 SubReport Madison ASP .Net 0 08-26-2010 09:21 PM
ReportViewer SubReport (vs2005) Madison ASP .Net 12 11-24-2009 09:35 PM
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy ASP .Net 0 02-11-2009 04:22 PM



Advertisments