Reseting Variables
I have a counter set to 0 (Zero) on the OnBeforePrint event of a report.
and I also have PassSetting to psTwoPassing. When I preview my report, then
counter is incremented by 1 on the OnBeforeDetailBandPrint event. and
allocated to a ppLabel.Caption on the detail band. But the number for the
first item on the first page is always 31 and the next 32 and so on instead
of 1,2,3,......... . I know this is happening because I have PassSetting set
to psTwoPassing. Where should I be reseting my variable or can you given me
a solution to how to do this.
THanks
Richie
email : richie@iting.fsnet.co.uk
and I also have PassSetting to psTwoPassing. When I preview my report, then
counter is incremented by 1 on the OnBeforeDetailBandPrint event. and
allocated to a ppLabel.Caption on the detail band. But the number for the
first item on the first page is always 31 and the next 32 and so on instead
of 1,2,3,......... . I know this is happening because I have PassSetting set
to psTwoPassing. Where should I be reseting my variable or can you given me
a solution to how to do this.
THanks
Richie
email : richie@iting.fsnet.co.uk
This discussion has been closed.
Comments
datatype to integer.
You can contionally set the variable by checking the Report.FirstPass, or
Report.SecondPass boolean properties.
Or
Use the Report.OnStartSecondPass to reset the value.
Or
Set the timing of the TppVariable to reset on ReportEnd. This should cause
it to automatically reset at the end of the first pass. (This is probably
the easiest approach out of the three).
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com