>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!
Jean,
Just an idea, but could you limit the size of the report you'r generating? Maybe generate it from a cursor created with a query with a where clause referring to the RECNO()?
HTH,
Jim