Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interrupt a Long Report
Message
De
07/01/2005 14:52:46
Jean Haidar
Arkansas Blue Cross/Blue shield
Little Rock, Arkansas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Interrupt a Long Report
Divers
Thread ID:
00975235
Message ID:
00975235
Vues:
67
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform