PC Review


Reply
Thread Tools Rate Thread

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

 
 
Sheena Abraham
Guest
Posts: n/a
 
      29th Nov 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_GetMemberByID",
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_GetMemberActivitiesByMemberID
",
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
Rate This Thread
Rate This Thread:

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 control: Error: subreport not showing Dean Slindee Microsoft VB .NET 2 12th Jun 2008 07:24 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET 4 17th May 2007 07:56 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET Framework 1 14th May 2007 08:05 PM
PDF exporting using reportviewer control for Visual Web Developer akosinorman Microsoft Dot NET Framework 0 15th Feb 2007 04:43 AM
ReportViewer SetReportParameters - Visual Studio 2005 =?Utf-8?B?VGVycnk=?= Microsoft Dot NET 0 24th Mar 2006 05:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 PM.