Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if a word document is open
Message
From
16/10/2000 14:03:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
How to check if a word document is open
Miscellaneous
Thread ID:
00429885
Message ID:
00429885
Views:
44
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
Next
Reply
Map
View

Click here to load this message in the networking platform