Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we pass a parameter from main report to subreport in crystal reports XI

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.

like image 514
sivakumar Avatar asked Jan 20 '10 04:01

sivakumar


People also ask

How do you pass parameters in Crystal Reports?

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.

How do you access Subreport Field in main report?

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.)


1 Answers

Right-click on the subreport object and choose Change SubReport Links, then select how the parameter is to be used by the subreport.

Subreport linking of paramters

like image 83
MartW Avatar answered Oct 04 '22 05:10

MartW