Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interrupt a Long Report
Message
From
07/01/2005 14:52:46
Jean Haidar
Arkansas Blue Cross/Blue shield
Little Rock, Arkansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Interrupt a Long Report
Miscellaneous
Thread ID:
00975235
Message ID:
00975235
Views:
66
How can we programmatically gnerate an ESCAPE to Stop a Report that is sent to
a PDF Writer?

We can stop by Setting Set ESCAPE ON, then when the Report start spooling, Manually Pressing Escape will stop it.

Is there way to stop it programmatically. The reason for this because a Method in a class is called from a Web Service.

we created a test with a timer class by inserting KEYBOARD "{ESCAPE}" in the Timer Event,
but timer event stop execution as soon as 2nd line of code below start spooling pages:


*-- Send it to Amyuni PDF Converter
oPDFPrinter.DefaultFileName=tcPdfName
REPORT FORM &tcRptName TO PRINTER NOCONSOLE NOWAIT
*-- Next line of code

The objective is to defect if "Report form" is taking more than 2 minutes then stop it and continue to the next line code.



Any help would be appreciated!
Jihan Haidar
Software Engineer
jhhaidar@sbcglobal.net
Next
Reply
Map
View

Click here to load this message in the networking platform