O
omega-bureau
I am having an issue where by when using the SaveAs on a document, it is
still keeping the original document held open, therefore not allowing me to
delete. This can be seen by looking at the document and the temp files
created, eg.
A new document is created and saved as Doc1.doc, ~$Doc1.doc temporary file
is created. SaveAs is performed on the Doc1.doc, saving as Doc2.doc, creating
the ~$Doc2.doc as I would expect, however the Doc1.doc and ~$Doc1.doc are
also still showing, and you are unable to deleted Doc1.doc because it is
still 'held'. Closing Doc2.doc then allows you delete. This is all performed
using the standard SaveAs method on the Word object.
As always this does not happen on the development machine, but does on live
machines. Additionally I can 'occasionally' get Word to do the same thing
manually, ie using File, SaveAs, but it is not consistant.
Any ideas?, Thanks OB
still keeping the original document held open, therefore not allowing me to
delete. This can be seen by looking at the document and the temp files
created, eg.
A new document is created and saved as Doc1.doc, ~$Doc1.doc temporary file
is created. SaveAs is performed on the Doc1.doc, saving as Doc2.doc, creating
the ~$Doc2.doc as I would expect, however the Doc1.doc and ~$Doc1.doc are
also still showing, and you are unable to deleted Doc1.doc because it is
still 'held'. Closing Doc2.doc then allows you delete. This is all performed
using the standard SaveAs method on the Word object.
As always this does not happen on the development machine, but does on live
machines. Additionally I can 'occasionally' get Word to do the same thing
manually, ie using File, SaveAs, but it is not consistant.
Any ideas?, Thanks OB