Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if a word document is open
Message
De
16/10/2000 14:03:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
How to check if a word document is open
Divers
Thread ID:
00429885
Message ID:
00429885
Vues:
43
Hi all,

I am wondering if any one knows how to check to see if
a worddocument is opened before you try to open it from FoxPro.

&&Creates a word doc container
oword = create('Word.application')

&& opens a document but if the document
&& has already been opened it gives you an error.

document.oword.documents.open('E:\ops\anydoc.doc')

oword.documents.close(0) &&Close all documents

Thank you
Cicilia
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform