(Msg. 1) Posted: Sun Jan 20, 2008 2:59 pm
Post subject: Word 2007 + programmatic second instance thru VB.Net 2005 Archived from groups: microsoft>public>word>application>errors (more info?)
hi everyone !!
I have run into a problem that appears to be a bug in Word 2007.
If I save a .dotm file in Word's startup folder, the file seems to get
locked by Word while Word is open, which is OK. The problem is that when I
open another instance of Word, word complains that the .dotm is locked for
editing, when it really isn't. I am doing this thru my vb app !!
I know that there are plenty of applications that install templates in
Word's Startup folder, and there are also many situations where more than one
instance of winword.exe is running, so I'm kind of surprised that I couldn't
find anything about this in the knowledgebase or newsgroups.
Here are the steps to reproduce the problem (using the released version of
Word 2007 on Windows XP):
1. Open Word 2007. Save the untitled document as:
C:\Documents and Settings\username\Application
Data\Microsoft\Word\STARTUP\MyDotm.dotm
2. Close the document and close Word.
3. Go to Start > Run, type "winword /n", and click OK. Word Opens with no
open document (/n means don't start with an empty document).
4. Repeat step 3 (Go to Start > Run, type "winword /n", and click OK.
Error: A new instance of word opens (which is correct), but the following
dialog comes up from Word:
Do you want to:
Open a Read Only copy
Create a local copy and merge your changes later
Receive notification when the original copy is available"
has anyone else run into this problem ???... this was posted by somebody
somewhere else as well (a site called awomantoldme) n still havent found a
solution to this !!!
******* Hope the MVP's can help out here !!!!! *********
(Msg. 2) Posted: Sun Jan 20, 2008 4:57 pm
Post subject: Re: Word 2007 + programmatic second instance thru VB.Net 2005 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Hi Koms,
You may want to use the link below to also post this in the Word Programming discussion group.
Starting Word with no visible new document does not prevent the templates in the Startup folder from being attached to and
accessible to Word (Alt, T, I) and a Windows 'in use' lock file is created at that point (check the Startup folder for the lock
file - hidden file named ~MyDotM.dotm with your example). The template can be edited through the use of the Document Building
Blocks, macros and other means and Word doesn't support multiple uses of the same file whether it's by two users or two instances
for the same user.
While Word also creates lock files for any Word 97-2003 format .dot files in the Word 2007 Startup folder it doesn't raise the
warning on starting Word for those. (Use File=>Save as with your MyDotM.dotm to save another copy to \STARTUP as MyDotm.DOT (Word
97-2003 template). It may, however, 'wait' to warn you that two copies are in use when you try to save a change that was made to it.
If you start a new document from the 1st instance and use Insert=>Quick Parts=>Building Blocks Organizer then close that dialog then
repeat that in the 2nd instance you'll likely get the same message for other 2007 templates (not in the startup folder) at that
point. If one of those templates is a .dot file, then that would be one where you can likely edit a building block in both copies
and get the warning only when you try to close out the Word session.
==============
wrote in message
hi everyone !!
I have run into a problem that appears to be a bug in Word 2007.
If I save a .dotm file in Word's startup folder, the file seems to get
locked by Word while Word is open, which is OK. The problem is that when I
open another instance of Word, word complains that the .dotm is locked for
editing, when it really isn't. I am doing this thru my vb app !!
I know that there are plenty of applications that install templates in
Word's Startup folder, and there are also many situations where more than one
instance of winword.exe is running, so I'm kind of surprised that I couldn't
find anything about this in the knowledgebase or newsgroups.
Here are the steps to reproduce the problem (using the released version of
Word 2007 on Windows XP):
1. Open Word 2007. Save the untitled document as:
C:\Documents and Settings\username\Application
Data\Microsoft\Word\STARTUP\MyDotm.dotm
2. Close the document and close Word.
3. Go to Start > Run, type "winword /n", and click OK. Word Opens with no
open document (/n means don't start with an empty document).
4. Repeat step 3 (Go to Start > Run, type "winword /n", and click OK.
Error: A new instance of word opens (which is correct), but the following
dialog comes up from Word:
Do you want to:
Open a Read Only copy
Create a local copy and merge your changes later
Receive notification when the original copy is available"
has anyone else run into this problem ???... this was posted by somebody
somewhere else as well (a site called awomantoldme) n still havent found a
solution to this !!!
******* Hope the MVP's can help out here !!!!! *********
cheers >>
--
Please let us know if this has helped,
Bob Buckland ?
MS Office System Products MVP
>>*Courtesy is not expensive and can pay big dividends<<
(Msg. 3) Posted: Wed Jan 23, 2008 11:48 pm
Post subject: word 2007 template and second instance of word [Login to view extended thread Info.]
Hi there,
Here is the simple way of reproducing our problem which will give u a better idea about the actual problem..
Follow the steps below..
1. Open a blank word 2007 document and SaveAs "xyz.dotm" (macro enabled
template) at the following location: C:Program FilesMicrosoft
OfficeOffice12Starup
(this template does not need to have any macros in it..)
2. Now open a blank word document and leave it open... (first instance of
word 2007 document)
3. And now goto Start -> Run and type the following command "winword /w"
(this command will start a second instance of word 2007 document and opens a
blank document)
PROBLEM -- you will notice a dialog box saying the template (XYZ.DOTM in the startup folder) is locked for editing ...!!
4. Our question is this behaviour is abnormal as compared with the previous the versions of word where we have our templates (.dot) files at the same Starup location and no matter how many instances we create of word document there were no such dialog boxes..
-- is this something new from Microsoft with .dotm (or .dotx) templates or
is this a bug of Microsoft Word 2007
(Msg. 4) Posted: Thu Feb 07, 2008 3:57 pm
Post subject: Word 2007 shared startup network folder [Login to view extended thread Info.]
I ran into the same problem as described in this thread because I have a network location where I store a macros template file that all users in the network are mapped to in the file locations setting of Word.
Just today, I decided to update the 2003 dot file with a prettier Ribbon 2007 version. I saved a dotm file and replaced the older dot file after making a copy of it for restoring if necessary. It was working fine for me until 2 other users in the network called to say that they were getting the Read Only dialog box on documents that themselves weren't open by another user. I quickly discovered that it was the dotm file that they were trying to both access that was the problem.
An internet search led me here after unsuccessful attempts to find the solution elsewhere. While the solution wasn't here, this was the only direct hit I could find to the same problem I was having.
I guessed at a solution to my problem that worked. I wonder if it can work for you too. My solution was to make the dotm file read-only in the attributes section of the file properties (i.e., right clicking the file to get to properties).
Before the read-only attribute was set for the dotm file, the network startup folder would show the hidden 2nd file that Word creates when you open a document. I suspect that it was this that was causing our problems (however, the 2003 dot version also did this with no problems with others simultaneously accessing the same file). Now, I see no hidden Word file in the startup folder. I suspect it is saved somewhere in my user profile, although right now I don't care. Maybe someday I'll investigate.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum