Best place to reset variables
The report has grouping and the variables are in the Detail band. So
it prints the record and its details and adds to the variable. I then
print the variable total in the group footer. Now it prints the next
record and so on.
I want to reset the variable as soon as I get the first record (but I
cannot see an event to do this). Presently I am resetting it after the
group footer print event but this does not take into account the first
record.
thanks
it prints the record and its details and adds to the variable. I then
print the variable total in the group footer. Now it prints the next
record and so on.
I want to reset the variable as soon as I get the first record (but I
cannot see an event to do this). Presently I am resetting it after the
group footer print event but this does not take into account the first
record.
thanks
This discussion has been closed.
Comments
You can use the TppVariable.ResetType property to define when you would like
that variable to reset. This property can be accessed at design time from
the Delphi Object inspector or from the designer by right clicking on the
variable and selecting the "Timing" option from the popup menu.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com