Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Isprinted?
Message
De
06/04/2001 03:16:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00492252
Message ID:
00492701
Vues:
16
>>Is there a way do know if the user has printed the report after a preview.
>>Thanks.
>Cemal,
>
>I don't know the 100% reliable method, but for a start you can put a field in your Report Header with WasPrinted() function in it.
>
>before running your report
>
>private lWasPrinted && you can also use local var
>lWasPrinted=.f.
>report form myreport preview
>?lWasPrinted
>
>Function WasPrinted is very simple
>if wexist("Printing")
>  lWasPrinted=.t.
>endif
>return ""
>
>This would not absolutely reliable, since user can hit cancel button on the Printing window. But this is for a start.
>
>BTW, I got this idea from one of messages here by Cathy P.

Thanks Nadya,
I think to make two buttons
One that prints directly to the printer
and one that is only for preview.
I have seen a message from you about previewing with out the print preview toolbar.

Cemal
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform