Very simple problem
But i can't solve it...
The report layout is like:
GroupHeader
Detail
GroupFooter
Summary
In the detail i have:
Field1 Field2
In the groupfooter i need a variable with:
SUM(Field1)/SUM(Field2)
And in the summary the same:
SUM(Field1)/SUM(Field2)
I just can't make it work.
I have four delphi variables and in the afterprint of the detail band i
store the Numerator and Denominator values for the group and the
summary. On the OnCalc i calculated the values with those variables, but
the results are wrong.
thanks
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
The report layout is like:
GroupHeader
Detail
GroupFooter
Summary
In the detail i have:
Field1 Field2
In the groupfooter i need a variable with:
SUM(Field1)/SUM(Field2)
And in the summary the same:
SUM(Field1)/SUM(Field2)
I just can't make it work.
I have four delphi variables and in the afterprint of the detail band i
store the Numerator and Denominator values for the group and the
summary. On the OnCalc i calculated the values with those variables, but
the results are wrong.
thanks
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
This discussion has been closed.
Comments
TppVariables and code their OnCalc event handlers as the OnCalc is
guaranteed to fire based on the Variable's timing dialog settings.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com