Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing VFP to become active at REPORT FORM
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00661621
Message ID:
00663189
Views:
23
I tried this with the following results:

1. Printing ... dialog box still occurs confusing user who is working
with other foreground application.

2. Since on error handler is not invoked if error occurs in report,
on error _screen.visible = .t. is ignored totally. So it is meaningless.

3. _screen.visible = .t. does not restore VFP application in taskbar if it is
minimized. VFP 7 application stays invisible after _screen.visible = .t.


>Avec you try this:
>
>on error _screen.visible = .t.
>_screen.visible=.f.
>report form myreport
>_screen.visible = .t.
>
>
>>Jean-Rene,
>>
>>thank you for reply.
>>
>>Unfotunately, this does not help:
>>
>>1. REPORT FORM command still restores my minimized application and brings
>>it to front.
>>
>>2. Error in report causes application to stop respondig:
>>Lockwindowupdate() block also error message dialog. Only ctrl+alt+del and end task helps.
>>
>>How to solve those problems ?
>>
>>>Try this. This is from the thread:Re: 'Printing ...' Thread #542638 Message #542800
>>>
>>>DECLARE INTEGER GetDesktopWindow IN WIN32API
>>>DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
>>>hWin = GetDeskTopWindow()
>>>LockWindowUpdate(hWin)
>>>REPORT FORM x TO PRINT
>>>LockWindowUpdate(0)
>>>
>>>You can use this "hide" the output window, but you still can't use this in a .DLL as it's still "there" as UI and won't work in a .DLL.
>>>
>>>>I have a VFP 7 application .exe running minimized in background.
>>>>
>>>>I use a REPORT FORM command to create a PDF files for Web server.
>>>>
>>>>Unfortunately, REPORT FORM command causes my application window
>>>>to become active.
>>>>
>>>>This is very annyoining since this occurs during user normal
>>>>work and interrups this.
>>>>
>>>>How to prevent REPORT FORM command to
>>>>activate a VFP application ?
Andrus
Previous
Reply
Map
View

Click here to load this message in the networking platform