Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word automation problem in Vista
Message
De
27/06/2007 18:42:28
 
 
À
13/06/2007 14:24:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01232724
Message ID:
01236163
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Since no one here could help I resorted to MS support and they confirmed the issue with Vista. Here is the code they gave to me address the problem in case any of you run up against it:

DECLARE Integer CoAllowSetForegroundWindow in OLE32.DLL Object, Integer
poWord=CREATEOBJECT("WORD.APPLICATION")
CoAllowSetForegroundWindow(poWord, 0)
poWord.Visible = .T.
poWord.Application.Activate
poWord.Windowstate = 1
MESSAGEBOX('Word should appear. Press OK to close Word.', 48, "")
poWord.Application.Quit
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform