Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Question: putting value in group header instead of group footer.

edited March 2005 in General
Hi,

I have a question. I am currently using a variable component in a group
footer to hold the result of the detail. I was wondering how do I put this
result at the group header instead of group footer. I'm currently using
RB7.01. Thanks in advance.

Steven

Comments

  • edited March 2005
    Hi Steven,

    If you place the variable in the group header, you can still have it show
    the group total by setting its LookAhead property to True. This property is
    available in the Delphi Object Inspector and in the popup menu if the object
    by right clicking over it.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    Hi Nico,

    Thanks for the reply. I had the LookAhead property set to True previously.
    However, the result does not produce the right amount. Is it because I have
    more than one group? I have 3 groups and these groups are within the
    subreport. Do I have to set the ResetComponent property for that group?
    Also there is a Reset Type property (default veReportEnd), do I need to
    reset that as well? Thanks again for helping out.

    Steven

  • edited March 2005

    LookAheard := True;
    ResetOn := veGroupEnd
    ResetComponent := {name of group}


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2005
    Thanks!! I got the right value.

    Steven

This discussion has been closed.