I am trying to pass a variable from sub report to main report. I have already declared variable in subreport. But it's not showing when I'm trying to use this at the main report. Can anyone please help me out? Thanks in advance.
While returning any value from subReport you have to just type the variable name you declared at the subReport in "subReport variable" field. And at the "Local Destination Variable" you will find the variable you declared in main report. Like this:
Don't forget to set the variable expression you declared at the main report. It has to be that variable itself.