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

Setting Memo text on group header using group footer before print query

edited September 2008 in General
Hi

I am using Delphi 7 and ReportBuilder 7.02.

I am trying to put a total of the detail records into the header, may be
this is not doable, but this is what I have done so far:

I have a Memo object on the group header with a keyword in it that needs to
be found and replaced with a figure from a DBCalc on the group footer. (This
took some doing as the string Delete and Insert functions seemed to do
nothing which was odd!)

I have the report on 2 pass and my keword is being replaced ok but the
figure on the 1st iteraction of the group is for the final iteration of the
group. there doesnt seem to be an order to it.

If I change it to 1 pass I get the right figures, but delayed one iteration
of the group as it hasnt gone back to do the update that a 2 pass does.

The DBCalc does show the correct value however.

Thanks in advance

Chris Noble
ECI? Europe

Comments

  • edited September 2008

    The DBCalc has built-in support for displaying a total in the GroupHeader.

    Place the DBCalc in the GroupHeader and set DBCalc.LookAhead to True.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.