Problem protecting document from vb (office 2007 sp2)

P

p_sie

Hello,

I have the following problem:
I developed a program, that saves Word documents formfield-protected on the
disk, but since installing sp2 of office 2007, I can no longer unprotect
documents that are protected while using sp2.

Steps to reproduce this:
open a vb program and paste the following code to be executed:

Dim oApp As New Word.Application

oApp.Documents.Add
oApp.Selection.TypeText "hallo"

oApp.ActiveDocument.Protect wdAllowOnlyFormFields, False, "a", False, True

oApp.ActiveDocument.SaveAs "c:\a.docx"

oApp.Quit

Then close your program and then open it in Word, then try to unprotect it,
it will
allways say : invalid password.

Does anyone have a tip/suggestion how to overcome this bug?

Thank you
 
J

Jay Freedman

A similar SP2 bug was reported in the thread "Password error from Word 2003
to Word 2007" that was started three days ago by Lorenz Hölscher. The MVPs
have confirmed it's a bug and reported it to Microsoft.

It appears the only workaround for now may be to save the document in Word
97-2003 (*.doc) format.

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

p_sie

saving the documents as .doc documents will require me to update the entire
program, not a real option to me.

Not installing SP2 is the best option for me now, do you think that there will
be a fix soon? And how can I obtain the fix if it exists?

Thank you.

p_sie
 
J

Jay Freedman

Fortunately, you can uninstall SP2 where it has already been installed -- this
is the first Office SP package that's able to do that.

I can't say now whether there will be a fix, soon or ever (I'm not a Microsoft
employee, and even they may not know yet). If and when there is one, though, it
will most likely be offered as a "hotfix". A KnowledgeBase article will be
posted that explains how to get the hotfix package; usually you have to contact
Product Support and specifically request access to the download location. You
can subscribe to http://kbalertz.com and sign up for just the Word articles to
keep watch for the one you want.
 
P

p_sie

Would it help if I reported this bug somewhere at the microsoft site?
If yes, where would I do that?

I subscribed to kbalertz, hope to see the hotfix soon...

Thank you for the information.

p_sie
 

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

Similar Threads


Top