event sequence and OnAfterPrint
Can someone tell me where to find the sequence in which events are executed in Fast Reports? I thought I had saved that information, but I cannot find it and no longer remember how I obtained it.
The reason this topic is of concern to me is a problem that I just fixed.
I am in the process of converting code to Fast Reports that formerly used Quick Reports. The code I just converted began producing range errors because of accesses to an empty list that should not have been empty.
The problem was due to my cleanup code in the OnAfterPrint event. In Quick Reports, this event is not triggered until the report was finished printing. In Fast Reports, this event is triggered even before the 'First' event! I fixed the problem by moving the cleanup code to the OnEndDoc event.
This problem was particularly insidious because the OnAfterPrint event code had not changed. I spent much time scanning the code that I had changed for the cause of the problem.