BlearyEye
asked on
Using a main report parameter on a subreport in Crystal Reports Viewer
I'm using C# 4.0 to display a Crystal Reports Viewer report.
The CR report contains a subreport. I need to add a parameter MachineSN to the subreport.
I've added the parameter to the main report but I can't access it in the subreport. On the main report I can right-click on the subreport box and choose Change Subreport Links. If I select MachineSN, it wants to create a filter.
If I manually add a parameter MachineSN to the subreport, I'm prompted for it when the report runs.
So, how can I make MachineSN available on the subreport?
The CR report contains a subreport. I need to add a parameter MachineSN to the subreport.
I've added the parameter to the main report but I can't access it in the subreport. On the main report I can right-click on the subreport box and choose Change Subreport Links. If I select MachineSN, it wants to create a filter.
If I manually add a parameter MachineSN to the subreport, I'm prompted for it when the report runs.
So, how can I make MachineSN available on the subreport?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
do you need to just show the MachineSN, in the subreport as text or your need to extract data related to this MachineSN.
ASKER
peter57r: that did the trick.
shared variables are tricky ... it took me a while to figure out that they have to appear on the main report somewhere in order to get initialized and show up on the subreport.
shared variables are tricky ... it took me a while to figure out that they have to appear on the main report somewhere in order to get initialized and show up on the subreport.
ASKER