How to display data of subreport according to main report Id.

1 Answer 87 Views
Report Designer (standalone)
Smruti
Top achievements
Rank 1
Smruti asked on 27 Sep 2023, 02:08 PM | edited on 27 Sep 2023, 02:11 PM

How to display data of subreport according to main report Id.
Now in main report it shows all data of sub reports, but I want to populate the data according to main report Id.

Note: I have created report in telerik report designer tool.

Ex-

Main Report- (Return 2 records)
EmpName1 DOB1
EmpName2 DOB2

SubReport Result-
Address1
Address2

Showing Result Now-
EmpName1 DOB1
Address1
Address2

EmpName2 DOB2
Address1
Address2

Required Result -
EmpName1 DOB1
Address1

EmpName2 DOB2
Address2

 

Please Help.

Thanks In advance.

 

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 02 Oct 2023, 08:40 AM

Hello Smruti,

You may use Report Parameters to pass to the subreports so that their data may be filtered as required.

For details, I suggest the article section SubReport > Defining the Parameters.

As a sample, please, check our demo report 'Invoice.trdp' that references as subreport 'Sales Order Details.trdp' filtered by '=Fields.SalesOrderID'. You may find the demo reports in the installation folder of the product, by default 'C:\Program Files (x86)\Progress\Telerik Reporting {version, for example, R2 2023}\Report Designer\Examples'.

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Report Designer (standalone)
Asked by
Smruti
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or