Information générale
Catégorie:
Gestionnaire de rapports & Rapports
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement