Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2007

Tip: Looking for answers? Try searching our database.

word 2007 keeps .doc file locked after save

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Fish - 28 Sep 2007 11:25 GMT
Hi,

I have a C# application that uses .Net interop to open a .doc file in word
2007, so a "save as" to XML, then close it.

on some documents, word keeps the file handle to the original .doc file open
(i.e. a file lock which I can see in process explorer), even though
Documents.Count returns 0. the file remains locked until word exits.

I have reproduced this on 2 different machines but it does not happen on
word 2003 and does not happen on every file.

Anyone have any idea what might cause this.

TIA

Andy
Shrini - 29 Sep 2007 21:58 GMT
Try opening the file as readonly and do a save as. It was happeing to me with
some files and when I started opening files readonly, the lock issue was gone.

good luck...

shrini

> Hi,
>
[quoted text clipped - 13 lines]
>
> Andy
Andy Fish - 01 Oct 2007 15:36 GMT
hmm, unfortunately I'm opening it readonly already.

I've tried every combination I can think of opening it, re-saving several
times in different formats, but whenever I save as xml or as docx, the
original .doc file stays locked

Andy

> Try opening the file as readonly and do a save as. It was happeing to me
> with
[quoted text clipped - 24 lines]
>>
>> Andy
ajfish@blueyonder.co.uk - 20 Nov 2007 17:24 GMT
Just as a follow up, I have raised this with microsoft suport and they
are going to raise it as a bug with the product team

(though the product team might still decide it is a feature !!)

Andy

> hmm, unfortunately I'm opening it readonly already.
>
[quoted text clipped - 34 lines]
>
> - Show quoted text -

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.