>Is there a way to determine whether the user actually printed a report in Preview mode? Like, if clicked on the Close button, return False, if clicked on Printer button, return True. Thanks!
>
>Regards, Renoir
In the On Exit of the Summary Band of your report, call a UDF that has the following code:
IF WEXIST('Printing...')
RETURN .t.
ENDIF
The "Printing..." window will only exist when you are printing the report. And by calling this UDF in the Summary Band, you are assured that they printed the report and didn't cancel before it got to the end. Of course, just because they let FoxPro finish processing the report doesn't mean that the printer is turned on or isn't out of paper < s >. But hey, we're only programmers ... not God!
Cathy