How can we pass a parameter from the main report to a subreport in Crystal Reports XI? I have a parameter in the main report. Now, I want to pass the same parameter to subreports. Please help me.
You can pass parameter values to a crystal report programmatically using ReportDocument. DataDefinition. ParameterFields member, which represents a collection of parameters associated with a report. Before you use ParameterFields, you must import CrystalReport.
Open the main report in design view. Right-click the edge of the subform control, and choose Properties. Check the Name of the subreport control (on the Other tab of the Properties box.)
Right-click on the subreport object and choose Change SubReport Links, then select how the parameter is to be used by the subreport.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With