Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return Whether Report Printed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00521016
Message ID:
00609500
Vues:
24
Hi Cathy,

Do you know any other ways to make determinition, if user cancel Printing dialog, without modification of report?

Or is there a way to automatically insert this function into each report (say, more than 100 reports)?

Currently we're using special Reporter application, which runs our reports. It doesn't return failure status in case, when user cancel printing or if report contains some errors (I'm not sure, they are trappable, and this is unfortunate). Anyway, I believe, at least in case of termination of report's printing, the status of the job should be set to "I" (incomplete).

Thanks a lot in advance.

>>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
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform