Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting if a Word document is available
Message
 
 
To
06/07/2001 22:18:20
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00527704
Message ID:
00527751
Views:
18
This message has been marked as the solution to the initial question of the thread.
>From this line:
>
>
>loWord.Documents.Open(lcFile)
>
>
>I would like to detect if the open was successfull. In development, I faced a situation where I had the file open. So, a dialog was prompted. I would like to detect that and take action.

Use fopen() to try to open the doc exclusively. If fails, it is already open by something else.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform