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

前端 未结 7 1697
我寻月下人不归
我寻月下人不归 2020-12-03 07:00

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 subr

7条回答
  •  爱一瞬间的悲伤
    2020-12-03 07:28

    Using CodebyMoonlight's solution requires a relation between main report and subreport.

    If there is no relation between both of them, you can use Shared Variables to pass values between both of them, as shared variable can be set and displayed anywhere in main report or sub report.

    Shared NumberVar x := 5;
    

提交回复
热议问题