This is a migrated thread and some comments may be shown as answers.

Problem passing values to subreport

2 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dapotato
Top achievements
Rank 1
dapotato asked on 13 Sep 2008, 09:47 PM
I have a master report with one sub report. In the master report I created properties that my web applications sets for the report parameters. In the needdatasource sub of the master reports I simply populate the dataset based on the properties set.

Now I have added a sub report and I am trying to set the properties in the sub report in a similar manager. I tried passing the values in the sub reports needsdatasource (fired in the master report) and cannot get the values to pass over. Is there any easy way to pass values from the master report to the sub report? I have tried everything I can think of including parameters.

2 Answers, 1 is accepted

Sort by
0
dapotato
Top achievements
Rank 1
answered on 14 Sep 2008, 03:12 PM
Ignore this question. I was making things way to complicated. I ended up just defining parameters for my master report, then my master report simply passes the parameters to the sub report. Everything works fine now.


Thanks!
0
Chris
Top achievements
Rank 1
answered on 07 Apr 2009, 08:16 PM
Can you please post your code for this.  I am having the same trouble except for WinForms.  ThinkingI can translate it though if I know what to do.

Thanks

Matt
Tags
General Discussions
Asked by
dapotato
Top achievements
Rank 1
Answers by
dapotato
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or