Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing the report preview window through code.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01271315
Message ID:
01271345
Vues:
17
Hi John.

>I need to be able to close the VFP report preview window through code.
>
>Some people leave it open and walk away leaving a number of files open and I want to be able to close it with some code in a timer.
>
>It seems to be a special window. wontop() returns blank. Keyboarding '{ESC}' has no effect. I am running VFP 9 SP1.

If you're using SET REPORTBEHAVIOR 90, the preview window is just a VFP form. Even cooler is that it's easily extendible using an extension handler. So, you could attach a custom Timer object to the preview window as an extension handler and when the timer fires, close the preview window. See the "Leveraging the Default Preview Container" topic in the VFP help file for details.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform