M
Mike
Hi! I am trying to programmatically delete a Word 2000 document.
programmatically from VB-6 and Java. I can delete a document just fine using
Kill or FSO.Delete() method. However, I noticed that if the document has been
opened and closed just prior to my deletion attempt, the deletion often fails
with the error message of “document-in-useâ€.
I am wandering if the Word object model or VB has the capability to check
the status of the document prior to the Delete call? When my deletion fails
the document stays with the in-use status for more than 30 min.
Why does it show that the document is in use anyway? Is there a way to reset
the flag? Is there a way to shutdown the automation? Is there a way to raise
an event when the doc becomes available?
Many Thanks in Advance,
--Mike
programmatically from VB-6 and Java. I can delete a document just fine using
Kill or FSO.Delete() method. However, I noticed that if the document has been
opened and closed just prior to my deletion attempt, the deletion often fails
with the error message of “document-in-useâ€.
I am wandering if the Word object model or VB has the capability to check
the status of the document prior to the Delete call? When my deletion fails
the document stays with the in-use status for more than 30 min.
Why does it show that the document is in use anyway? Is there a way to reset
the flag? Is there a way to shutdown the automation? Is there a way to raise
an event when the doc becomes available?
Many Thanks in Advance,
--Mike