Kbase P188217: MS Word window called via COM activates in the background on Windows Server 2008
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/05/2011 |
|
Status: Unverified
SYMPTOM(s):
MS Word window called via COM activates in the background on Windows Server 2008
MS Word document appears behind the calling Progress client
User has to click on the MS Word window to bring it to the front
Behaviour is reproducible on Windows Server 2008 using equivalent Visual Basic 6 code
FACT(s) (Environment):
Initializing MS Word document via COM
Performs processing (mail merge) prior to visualizing the Word document
Problem does not occur on Windows XP/ Windows 7 using ABL code
Problem does not occur on Windows XP/ Windows 7 using VB6 code
OpenEdge Category: Language (4GL/ABL)
OpenEdge 10.1B
OpenEdge 10.1C
OpenEdge 10.2x
Windows Server 2008
CAUSE:
The exact cause is unknown at the time of this writing, but symptoms suggest a feature of Microsoft Windows Server 2008
FIX:
Option #1
Contact Microsoft Technical Support for further assistance.
Option #2
Use Windows API call SetForegroundWindow to bring MS Word document to the front programmatically. Use of API functions "FindWindow" and "GetWindowText" may also be required.
Option #3
** These steps were extracted from a Microsoft TechNet Forum post and will resolve the issue for a specific user **
Start Regedit
Backup registry
Go to HKEY_CURRENT_USER\Control Panel\Desktop
Change value of ForegroundLockTimeout to "0"
Logout/Login