Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Fri, 28 Sep 2007 11:25:38 +0100,    group: microsoft.public.word.oleinterop        back       


word 2007 keeps .doc file locked after save   
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
date: Fri, 28 Sep 2007 11:25:38 +0100   author:   Andy Fish

RE: word 2007 keeps .doc file locked after save   
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

"Andy Fish" wrote:

> 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
> 
> 
>
date: Sat, 29 Sep 2007 13:58:00 -0700   author:   Shrini

Re: word 2007 keeps .doc file locked after save   
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

"Shrini"  wrote in message 
news:19E1CE35-0CE8-4025-80D7-4325E70C67AF@microsoft.com...
> 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
>
> "Andy Fish" wrote:
>
>> 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
>>
>>
>>
date: Mon, 1 Oct 2007 15:36:22 +0100   author:   Andy Fish

Re: word 2007 keeps .doc file locked after save   
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

On 1 Oct, 14:36, "Andy Fish"  wrote:
> 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
>
> "Shrini"  wrote in message
>
> news:19E1CE35-0CE8-4025-80D7-4325E70C67AF@microsoft.com...
>
>
>
> > 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
>
> > "Andy Fish" wrote:
>
> >> Hi,
>
> >> I have a C# application that uses .Netinteropto open a .doc file in
> >>word
> >> 2007, so a "save as" to XML, then close it.
>
> >> on some documents,wordkeeps 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 untilwordexits.
>
> >> I have reproduced this on 2 different machines but it does not happen on
> >>word2003 and does not happen on every file.
>
> >> Anyone have any idea what might cause this.
>
> >> TIA
>
> >> Andy- Hide quoted text -
>
> - Show quoted text -
date: Tue, 20 Nov 2007 09:24:32 -0800 (PST)   author:   unknown

Re: word 2007 keeps .doc file locked after save   
Has there been any update on this? I am having the same issue at a customer 
site... its just on a single Office 2007, its getting the file is locked, but 
there are no users accessing these files, they are not opened any where else.

"ajfish@blueyonder.co.uk" wrote:

> 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
> 
> On 1 Oct, 14:36, "Andy Fish"  wrote:
> > 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
> >
> > "Shrini"  wrote in message
> >
> > news:19E1CE35-0CE8-4025-80D7-4325E70C67AF@microsoft.com...
> >
> >
> >
> > > 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
> >
> > > "Andy Fish" wrote:
> >
> > >> Hi,
> >
> > >> I have a C# application that uses .Netinteropto open a .doc file in
> > >>word
> > >> 2007, so a "save as" to XML, then close it.
> >
> > >> on some documents,wordkeeps 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 untilwordexits.
> >
> > >> I have reproduced this on 2 different machines but it does not happen on
> > >>word2003 and does not happen on every file.
> >
> > >> Anyone have any idea what might cause this.
> >
> > >> TIA
> >
> > >> Andy- Hide quoted text -
> >
> > - Show quoted text -
> 
>
date: Thu, 20 Dec 2007 07:45:00 -0800   author:   @discussions.microsoft.com

Re: word 2007 keeps .doc file locked after save   
Anybody hear about a fix? I have had to downgrade back to 2003 because of 
this problem. I cannot put in a trouble ticket to our IT department since 
they haven't officially rolled it out yet so they don't support it.

"jbarnes@customis.com" wrote:

> Has there been any update on this? I am having the same issue at a customer 
> site... its just on a single Office 2007, its getting the file is locked, but 
> there are no users accessing these files, they are not opened any where else.
> 
> "ajfish@blueyonder.co.uk" wrote:
> 
> > 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
> > 
> > On 1 Oct, 14:36, "Andy Fish"  wrote:
> > > 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
> > >
> > > "Shrini"  wrote in message
> > >
> > > news:19E1CE35-0CE8-4025-80D7-4325E70C67AF@microsoft.com...
> > >
> > >
> > >
> > > > 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
> > >
> > > > "Andy Fish" wrote:
> > >
> > > >> Hi,
> > >
> > > >> I have a C# application that uses .Netinteropto open a .doc file in
> > > >>word
> > > >> 2007, so a "save as" to XML, then close it.
> > >
> > > >> on some documents,wordkeeps 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 untilwordexits.
> > >
> > > >> I have reproduced this on 2 different machines but it does not happen on
> > > >>word2003 and does not happen on every file.
> > >
> > > >> Anyone have any idea what might cause this.
> > >
> > > >> TIA
> > >
> > > >> Andy- Hide quoted text -
> > >
> > > - Show quoted text -
> > 
> >
date: Wed, 13 Feb 2008 09:43:03 -0800   author:   krausdoug

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us