473,414 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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


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 ***
Nov 29 '07 #1
0 963

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: amber | last post by:
Hello, I have created a report using Crystal Reports 9 in VB.NET. I'm having trouble with a subreport. I have created a view in SQL server, and a dataset in VB.NET based on that view. I'm a bit...
2
by: DFS | last post by:
Main report contains one large graph in the detail band (no detail records). Subreport snakes just fine (5 columns) when opening by itself. When I add it to the main report (in the report...
8
by: stemo76 | last post by:
I have created a report with subform/subreports. I can see all the data on the screen but when I try to print it to a printer or adobe distiller I get 'The Microsoft Jet Database engine could not...
1
by: Beowulf | last post by:
I'm having some difficulty and I can't for the life of me figure out why. I have a main report, rptMain, that contains a report header (displays the AppTitle), 3 group headers (one is a header...
0
by: David Dvali | last post by:
Hello. I have just started using Microsoft Reporting tools and I like it very much. I'm using Microsoft SQL Server 2005 and Microsoft Visual Studio 2005 for generating reports in my ASP.NET web...
2
by: dgk | last post by:
I created a SQLServer report using Visual Studio and want to be able to access it, and pass in a parameter or two, from my ASP.Net 2 app. Can someone point to a quick tutorial on the way to do it?...
1
by: Sithy | last post by:
Dear All, Currently we are working on a project by using Visual Studio.net as an interface, MS-SQL as data store, and ReportViewer 8 as data view. We want to display our local unicode...
2
by: Jimmy | last post by:
On the subreport, records are grouped by WorkDate. In the WorkDate header there is a textbox named DateCounter with the control source =1 and running sum set to yes. In either the report footer or...
2
by: =?Utf-8?B?UmljaA==?= | last post by:
On my development machine where I have Visual Studio 2005 loaded, I have an app that uses the Report control. I can view data in report format with the Report control -- the data renders OK in the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.