Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inside the Visual Foxpro Report Designer
Message
 
À
19/07/1999 19:52:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00243367
Message ID:
00253489
Vues:
21
Hi Barry,

sorry for the delay...

>Did you ever submit that? If so in what issue would I find it?

To be honest, I can't remember. If I did and if Tamar decided to print it, it should be around 3-4 month after the article in the Update&Feedback column. The following code has been provided by John Torrance. Of course, it's just a sample, you should lock the desktop just before executing the report and unlock it right after removing the Printing window.
USE <mydbf>
DO LockWindow WITH .NULL.               && declare the procs in the API
DO LockWindow WITH .t.                  && lock the desktop
REPORT FORM <myrpt> TO PRINT NOCONSOLE  && run the report
DO LockWindow WITH .f.                  && unlock the desktop
RETURN


PROCEDURE LockWindow
LPARAMETER lOption

DO CASE

   CASE IsNull( lOption )
      DECLARE INTEGER GetDesktopWindow IN WIN32API
      DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle

   CASE lOption
      LockWindowUpdate( GetDeskTopWindow() )

   CASE NOT lOption
      LockWindowUpdate( 0 )

ENDCASE
Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform