Hi Venkatram,
oops
Afterband was wrong. What I mean is
AFTERREPORT. I beg your pardon.
I have something like
NODEFAULT
IF !THIS.glCanceled THEN
DODEFAULT()
ENDIF
</pre
in the AFTERREPORT event.
CANCELREPORT
is like
<pre>
DODEFAULT()
THIS.glCanceled = .T.
NODEFAULT
The LoadReport event needs
THIS.glCanceled = .F.
or later reports will not be printed.
you need to add property glCanceled to the ReportListener
Agnes
>Hi Agnes,
>
>I tried and it cancelled the report, one small issue if i render a 300 page report and i can in between it is showing the pages which are rendered before cancellation.
>
>i want to unload the report totally and go back to my previous screen.
>
>i used the below code in my afterband.
>
>procedure afterband(nbandobjcode, nfrxrecno)
> if glQuit
> nodefault
> return
> endif
>enproc
>
>Thanks in Advance
>
>-Venkatram
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]