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

Calculation

edited February 2006 in RAP
Hi list,
i've this little problem:
one Main Report
one Sub Report

In the main Report i need to print the total of a column in the Sub Report.
So i've created a global var: ntottempo ( double ).

In the Sub Report Detail band i've created a variable (variable1). In the
OnCalc event i've coded:
ntottempo := ntottempo + SCHEDE['TEMPO_TOTALE'];

In the Main Report i've created a variable (variable2) and in the OnCalc
event i've coded:
value := ntottempo;

In the variable2 OnReset event i've coded;
ntottempo := 0;

The variable2 timing is:
Transverse
End Group;

After many checks i've noted variable2 doesn't calculate the "last" record
in the SubReport.
Where i'm wrong?

Thanks.

Paolo

Comments

This discussion has been closed.