>I have the following command:
>REPORT FORM MyReport TO PRINTER PROMPT NOCONSOLE
>
>If I press ok in the printer dialog everything is ok but...
>I would like to cancel the program or do something else when the user select CANCEL from the printer dialog, is there any way?
>
>Any comments will be welcome, Thank you in advance.
You may reset some property-flag within the report for (e.g. by firing some UDF from Title/Summary band On-Entry/Exit).
oApp.Reportrun=.f.
Report Form Myreport NOCONSOLE TO PRINT PROMPT
IF oApp.ReportRun=.f. && still .F.- report wasn't run
*** do something here
ENDIF
Edward Pikman
Independent Consultant