Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No way to tell if Print button was pressed on Preview?!
Message
De
30/07/1997 12:08:21
Gino Miceli
Lan Professionals, Inc.
Bay Shore, New York, États-Unis
 
 
À
30/07/1997 11:48:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00042331
Message ID:
00042371
Vues:
28
>>I am finding it hard to believe that our old Big Brother MS has provided us NO WAY to tell if the Print button was pressed on the Print Preview toolbar. Maybe there's a way to trap the event by going to the API? Any suggestions?
>
>I don't know how to capture pressing the print button, but how about using a global memory variable? Like this:
>
>Create global memory variable glPrinted
>
>Create printon.prg:
>*PRINTON.PRG
>glPrinted = NOT glPrinted
>
>In the title band on entry event put:
> printon()
>
>In your code to preview and print:
>
>glprinted = .T.
>report form preview
>IF NOT glprinted
> IF (your message program) = "Yes"
> report form to print
> ENDIF
>ENDIF
>
>I am assuming that you don't want to show a message asking if the user wants to print a report when they've already printed it from the preview toolbar.
>
>HTH,
>Valerie

Thank you very much... this is an EXTREMELY CLEVER way of dealing with this.. I should have thought of that sooner! Thx again!

- Gino M
- Gino Miceli -
LAN Professionals Inc.
Bayshore, NY
gino@vdot.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform