Results 1 to 7 of 7
  1. #1
    Join Date
    May 2007
    Posts
    2

    Talking Unanswered: Pulling Subreport Results into Main Report

    Hi,

    Can someone tell me if/how i can pull results from a Subreport into the main report??
    I have a Subreport which capture results in a variable (number).
    Want to work on these findings in the main report.
    I'm running Crystal 8.0.1.0

    Many Thanks

  2. #2
    Join Date
    Feb 2007
    Posts
    348
    I'm gonna go with no. Someone could prove me wrong but no is my bet.

  3. #3
    Join Date
    Dec 2004
    Location
    Connecticut
    Posts
    85
    You have to use shared variables to return values from the subreport to the main report.

    Seagate's website has an excellent tutorial on using shared variables here.

    The gist of it is:

    Define the variable in a section of the main report prior to the subreport and set it to zero or null.

    Define the same variable in the subreport. Place it in an appropriate section of the subreport and assign it a value.

    Display the shared variable in a section of the main report after the subreport.

  4. #4
    Join Date
    Feb 2007
    Posts
    348
    that's pretty cool, thanks for that.

  5. #5
    Join Date
    May 2007
    Posts
    2
    Thanks trowe, I'll give that a try.

  6. #6
    Join Date
    May 2007
    Posts
    1
    Hi,

    I am new to the site and also new to Crystal Reports. I do not know how to create a subreport, let alone place it into another report. Is there a link that can help me?

  7. #7
    Join Date
    Feb 2007
    Posts
    348
    There's the long answer and the short answer.
    The short answer is insert> Subreport
    The long answer is that you should probably have a one to many relations ship (like a whole bunch of widgets that make up a gadget) then in the details of the report on the larger item (a gadget) that calculates the many part of the relationship (the widgets).
    That probably didn't make a ton of sense.
    do you have a particular usage you are thinking of?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •