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
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