Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inside the Visual Foxpro Report Designer
Message
 
To
19/07/1999 19:52:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00243367
Message ID:
00253489
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform