General information
Category:
COM/DCOM and OLE Automation
Title:
How to check if a word document is open
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only