>>Hi Nadya,
>>
>>I don't know of any other way other than to add an On Exit expression to the Summary band of each report.
>
>Hi Cathy,
>
>I've checked the logic of our Reporter application. It has a UDF called ReptRun.
>
>In this function the private variable is declared:
>abortprt = .f. && output not yet aborted
>
>So, my report should somehow set this flag to true, if report was canceled. The only way I see is to set it to .t. in Report's Title and reset back to .f. in Summary, which seems complicated...
>
>I'll think more about this option lately...
>
In the On Entry of the Title band, enter the following expression:
EXECSCRIPT('abortprt = .t.')
In the On Exit of the Summary band, enter the following expression:
EXECSCRIPT('abortprt = .f.')
That should do it!
Cathy