Password error from Word2003 to Word2007

L

Lorenz Hölscher

Hi everyone,

if someone protects a Word2003-DOC with a password and converts this
file into Word2007-DOCX then the former password is wrong. Did anyone
find a solution to this?

Both passwords have been set by an add-in so that we're sure they are
correct.

Thanks, Lorenz
 
T

Tony Jollans

I don't see this problem. How are you converting the document, and how are
you saving the document? And what do you mean by 'both passwords'?
 
L

Lorenz Hölscher

Hi Tony,

Tony said:
I don't see this problem. How are you converting the document, and how are
you saving the document? And what do you mean by 'both passwords'?
users in the company are working either with w2003 or w2007. Those who
made a w2003 document (which is a form and therefore automatically
password protected) send this to another user. Some of them sometimes
use w2007, so they convert their file into a docx-document.
When opening the docx, an add-in needs to unprotect the file with the
same password and stops because w2007 doesn't accept the w2003
password. We checked it manually: a w2003-doc with password, converted
into w2007-docx, cannot be unprotected with this password!

So what to do?

bye, Lorenz
 
T

Tony Jollans

I hadn't registered you meant protected for forms, sorry, I was thinking of
encryption. It rings a bell, although the details escape me for the moment,
but I cannot recreate the situation; when I convert a .doc form to a .docx
form, it still unprotects with the same password (manually and in VBA).

What version of Word 2007 are your users using - SP1, or SP2? And, thank you
for the extra detail but you haven't answered the questions: how are the
users converting the document, and what are _both_ passwords (you only
mention one).
 
L

Lorenz Hölscher

Hi Tony,

Tony said:
What version of Word 2007 are your users using - SP1, or SP2? And, thank you
for the extra detail but you haven't answered the questions: how are the
users converting the document, and what are _both_ passwords (you only
mention one).
Q1: My version is 12.0.4518.1014 MSO 12.0.6036.5000 (seems to be no
service pack), but I don't know what the company has installed.

Q2: I'm not sure how the users are converting the documents. The
company has installed the w2003-compatibility-pack (for those who are
still working with w2003), so they might use that SaveAsW2007 option.
We are external programmers and get their documents via email. To see
this error, we opened a w2003-doc with the w2007 (showing
[compatibility mode] in the top most caption) and then save it as a
w2007-DOCX.

Q3: The "both" passwords are one single password only. The w2003-doc
is protected by a w2003-AddIn when using one of the templates and the
w2007-AddIn has been copied from the old AddIn (with a new ribbon
interface) und uses the same code/password to unprotect and protect
the document.

Hope this helps to enlighten the darkness ;->

bye, Lorenz
 
L

Lorenz Hölscher

Hi Tony and all the others,

we found new hints! The error needs a macro with
Public const p_cstrPW = "abc"

ActiveDocument.Protect wdAllowOnlyFormFields, True, p_cstrPW
and another macro with
ActiveDocument.Unprotect p_cstrPW

Between running those two macros you have to save, close and open the
document. With a non-SP2 Office 2007 this will work correctly, with a
SP2 Office 2007 there is the "incorrect password" error!

Can anyone proove this?

Thanks, Lorenz
 
T

Tony Jollans

OK - I can duplicate this on SP2. It doesn't need any macros. Open a .doc
protected form and save it as a .docx in SP2, close it reopen it, and the
password is invalid.

I'll see what I can find out.
 
L

Lorenz Hölscher

Hi Tony,

Tony said:
OK - I can duplicate this on SP2. It doesn't need any macros. Open a .doc
protected form and save it as a .docx in SP2, close it reopen it, and the
password is invalid.

I'll see what I can find out.
Great!
And the problem becames even stranger: if you unprotect the file
_before_ closing it everything is still okay. It needs to be closed.

bye, Lorenz
 
J

Jay Freedman

It works for me, too, in both directions (.doc to .docx, and .docx to .doc).

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all
may benefit.
 
L

Lorenz Hölscher

Hi Jay and Tony,

Jay said:
It works for me, too, in both directions (.doc to .docx, and .docx to .doc).
I will try it (but have to reinstall SP2 before...).

thanks, Lorenz
 
J

Jay Freedman

Lorenz said:
Hi Jay and Tony,


I will try it (but have to reinstall SP2 before...).

thanks, Lorenz

Lorenz, it might be best to wait a day or two while we check out a report
that the hotfix has a problem. MVP Cindy Meister reported this to us:

"FWIW a person in the VSTO forum reports this hotfix did fix that problem
but
caused another, a biggie. Apparently running the hotfix destroyed the doc
variables in the file. See

http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/15b2d25a-00e8-4283-8a4e-0045254594b2 "

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
L

Lorenz Hölscher

Hi Jay,

Jay said:
Lorenz, it might be best to wait a day or two while we check out a report
that the hotfix has a problem. MVP Cindy Meister reported this to us:

"FWIW a person in the VSTO forum reports this hotfix did fix that problem
but
caused another, a biggie. Apparently running the hotfix destroyed the doc
variables in the file. See
thanks for the warning, I've read the link. We're not working with
original docs and planned to check this particular problem as well.

bye, Lorenz
 
L

Lorenz Hölscher

Hi,

did anyone succeed in getting the hotfix? The requested email didn't
come within the announced 5 minutes. We asked for the hotfix this
morning (about 5 hrs. ago) and got a confirmation. Don't they send it
anymore due to the second problem??

Regards, Lorenz
 
T

Tony Jollans

I got it successfully yesterday and checked it out before posting here.

I have just requested it again (using a different e-mail address because I
didn't know whether it might reject the same one again) and got the e-mail
in less than a minute.

If it's not in your junk mail, I would try again.
 
L

Lorenz Hölscher

Hi Tony,

we tried it from two different email addresses and looked into the
junk mail folder. Well, I'll give it another try from a third one...

thanks, Lorenz
 
T

Tony Jollans

Glad you finally got it.

I would be interested to know what benefit Microsoft get for making this
such a complex procedure - not just the e-mail, but the frequently changing
password as well. I know you can't answer, I'm just musing :)
 
T

Tony Jollans

I have done some testing on this and it does appear that the hotfix is
causing the destruction of document variables. I will raise the issue with
Microsoft and report back when I have more information.
 
L

Lorenz Hölscher

Hi Tony,

Tony said:
I have done some testing on this and it does appear that the hotfix is
causing the destruction of document variables. I will raise the issue with
Microsoft and report back when I have more information.
is it ActiveDocument.Variables or
ActiveDocument.CustomDocumentProperties? Are they being destroyed by
saving the document or do I have to delete one to destroy the others?

Regards, Lorenz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top