Problem protecting document from vb (office 2007 sp2)
- From: p_sie <p_sie@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 May 2009 07:20:02 -0700
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
.
- Follow-Ups:
- Re: Problem protecting document from vb (office 2007 sp2)
- From: Jay Freedman
- Re: Problem protecting document from vb (office 2007 sp2)
- Prev by Date: Re: Document Protection
- Next by Date: Font doesn't display correctly
- Previous by thread: Formatting Marks
- Next by thread: Re: Problem protecting document from vb (office 2007 sp2)
- Index(es):
Relevant Pages
|