C
Chuck Hartman
I have created a VSTO 2005 Word project that opens a remote read-only
document. The Open Event handler does a SaveAs of the current document to a
local temporary folder to allow the user to make changes to the document.
When the user finishes with their changes, they use an Actions Pane button
to save the document and post it back to the server. This all works well
without any problems.
For security reasons, I would like to clean up all of the temporary
resources created by my project, which among other things includes the DOC
file saved during the Open Event handler. However, even if I wait until the
VSTO Shutdown event, which occurs after the Close event, I am unable to
delete the file because it is still locked by Word. Is there a way to get
Word to unlock the file so it can be deleted, or is there some other way to
get rid of that file? Thanks.
This doesn't seem to be a VSTO specific question, so I am posting here.
Please let me know if there is a more appropriate group.
Chuck Hartman
document. The Open Event handler does a SaveAs of the current document to a
local temporary folder to allow the user to make changes to the document.
When the user finishes with their changes, they use an Actions Pane button
to save the document and post it back to the server. This all works well
without any problems.
For security reasons, I would like to clean up all of the temporary
resources created by my project, which among other things includes the DOC
file saved during the Open Event handler. However, even if I wait until the
VSTO Shutdown event, which occurs after the Close event, I am unable to
delete the file because it is still locked by Word. Is there a way to get
Word to unlock the file so it can be deleted, or is there some other way to
get rid of that file? Thanks.
This doesn't seem to be a VSTO specific question, so I am posting here.
Please let me know if there is a more appropriate group.
Chuck Hartman