Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win API if word is running?
Message
 
 
To
19/06/2007 09:58:44
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01234238
Message ID:
01234254
Views:
9
>is there a windows API telling me if a certain word document is open ?
>
>Peter

You may check this Problem with closing Excel opened by automation Thread #1232734 recent thread where I was dealing with a similar problem, though for Excel.

I also discussed it in another forum and found, that if you have a reference to your Excel (word) object, the simplest way to bring it to front, is to set its WindowState to maximize.
#define xlMaximized -4137  
  #define xlMinimized -4140  
  #define xlNormal -4143  
    
  loExcel.WindowState = xlMaximized
Idea by Vladimir Maximov in http://forum.foxclub.ru/read.php?29,278870,page=2 and http://forum.foxclub.ru/read.php?32,177182,258927#msg-258927 (in Russian)
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform