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

Group/Summary Question

edited April 2003 in General
Hello,

I am trying to use data from a group footer in the summary band of a report
to create a summary table of the group footer information.

My approach:
is to use ppMemo objects in the phDynamic SummaryBand.

In the Group footer before print:
pplblGroup2Footer.Caption := ppGroup2.CurrentValue ;

Then I would like to add the pplblGroup2Footer.Caption to the Memo in the
summary band.

My problem:
Choosing the right event for the memo.lines.add(pplblGroup2Footer.Caption)

I keep getting duplicate lines in memo for each group.

Thank you,
Mike Malinowski
GIS

Comments

  • edited May 2003
    Mike,

    Instead of using a TppLabel, try using a TppVariable set to type String.
    Then you are able to use the TppVariable.OnCalc event to update its value
    and the value of the memo in the summary. Then set the
    TStringList(TppMemo.Lines).Duplicates property to dupIgnore so you won't
    receive any repeated values in the memo.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.