Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Word Automation in Office 2010 and W7
Message
 
To
06/07/2012 07:40:59
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01547671
Message ID:
01547750
Views:
42
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform