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:
00528043
Views:
18
Hi!
To check if file already opened in Word:
For Each aDoc In loWord.Documents
    If lcFile $ aDoc.Name
        docFound = True
    EndIf
EndFor
If !docFound
    loWord.Documents.Open(lcFile)
EndIf
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform