Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting if a Word document is available
Message
 
À
06/07/2001 22:18:20
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00527704
Message ID:
00528043
Vues:
19
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform