Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancelling Rendering of Report in VFP 9.0 when ESC is pr
Message
From
21/09/2006 00:19:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
20/09/2006 12:56:33
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154938
Message ID:
01155806
Views:
20
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 &&!THIS.glCanceled
</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.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform