Click here to Skip to main content
15,885,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys,

I have asp.net website in c#.

Where i'm working on Crystal Reports.

Here i'm using sub reports in my main report.

the scenario is:
In the main report, i have 1 to 5 id's. Based on this id's i have to generate 5 sub reports.

in first row, 1st id & based on this id generate subreport.

& one sub report on each page, irrespective of its size.

i have linked my sub report fields with main reports.
by right clicking on sub report in main report, n linked it.
but i'm not getting data, but i can see no.of sub reports in the result.

Can any one please help me.


Thanks
Posted
Updated 28-Oct-14 20:57pm
v2

1 solution

Thanks to Almighty,

I have watched one video on youtube, 'How to pass parameters from main report to sub report' & from the video i got how to pass the parameters, where its shows by linking the fields from main report to sub report.
Steps:
1. add sub report in the main report.

2. Right click on the sub report & click on 'Change SubReport Links..'

3. Select any fields for link/filter your data in sub report.
--------------
Each Sub Report per page?

In the Main Report, if the sub report is in detail section then, go to section expert,
select paging tab, check visible records, in the textbox enter only 1, click ok.

it will display one sub report per page.

hope this will help others, too.

Thanks to Almighty once again...
 
Share this answer
 
Comments
Member 14115889 14-Oct-20 22:05pm    
Hi,
I do the linking of main report to subreport. But it result to error "Missing parameter values". Can you help me?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900