Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Word Automation in Office 2010 and W7
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01547671
Message ID:
01547750
Vues:
43
>bringwindowtotop(oWord.Hwnd) fails with an "OLE Error Code 0*80020006: Unknown Name" error.
>
>Regards

>>Thanks for the reply, but that doesn't really help as I can't find a sensible example of bringwindowtotop whereby it can be applied to an already instantiated version of Winword.exe.
>try:
>

Derek, are you Declaring the API function exactly like Peter? You need to keep the case in the declare command, as Peter showed it, later on the case does not matter, but it does in the declare.
DECLARE Long BringWindowToTop In Win32API Long
* is not the same as
DECLARE Long bringwindowtotop In Win32API Long
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform