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

Passing property values between subreports

2 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepak Shakya
Top achievements
Rank 1
Deepak Shakya asked on 21 Jan 2011, 05:40 AM
Hi,

I have two subreports within a report. I need to some calculation in the second subreport based on the property in the first subreport.

The way I did this is:
  • Created a public property in first report
  • Assigned a value of a textbox using Itemdatabound event
  • Assigned the value to a variable in the master as var = report1.propertyName
  • Assigned this variable to a parameter in the second report as : report2.parameter[0].value
  • Trying to perform calculation in the report2 using the parameter value.

This isn't working. Any suggestions?
Thanking you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 26 Jan 2011, 12:15 PM
Hi Deepak,

Telerik Reports are standard .NET classes so you can abstract yourself from the fact that you're working with reports and achieve your requirement.

Greetings,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Deepak Shakya
Top achievements
Rank 1
answered on 27 Jan 2011, 02:28 AM
Hi Steve,

Thanks for your help. It is working now. Loving working with the reports!

Cheers!
Tags
General Discussions
Asked by
Deepak Shakya
Top achievements
Rank 1
Answers by
Steve
Telerik team
Deepak Shakya
Top achievements
Rank 1
Share this question
or