Link to home
Start Free TrialLog in
Avatar of FCapo
FCapo

asked on

Crystal reports subreport

Hi,

Is there a way from within visual studio to open a supreport in crystal reports,

I'm trying Report1.OpenSubreport(Report1.Subreports(5).Name)

But this doesnt work,

Any ideas?
Avatar of Mike McCracken
Mike McCracken

WHat do you mean open a subreport?

Are you trying to show just the subreport?
If so, then no a subreport can be viewed only within the context of the main report.

If you are trying to do something other than view the report, what is it?

mlmcc
Avatar of FCapo

ASKER

I have 2 sub-reports in my main report, I have shared parameters in both sureports passed to the main report, those parameters are added up together in the main report to create a TOTAL,

The problem is that the subreports have to be in a section before where the total is evaluated, otherwise the total will be 0.

I wanted to make it that when the user clicks the total, even though it's just a formula, it opens the subreport with more details.
ASKER CERTIFIED SOLUTION
Avatar of Ido Millet
Ido Millet
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial