Problem protecting document from vb (office 2007 sp2)

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • How to get Admin password?
    ... after installing sp2, it gets the blue screen, error stop c0000135 cant ... disk because the only way now is to wipe the disk and install everything ... people, we cant help you, thats like way advanced or something. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Cleaning after SP2
    ... Cleaning up after installing SP2: MVP Alex Nichol ... Installing SP2 leaves a lot of space on hard disk taken up by files you ... Delete the hidden folder of files that would be restored by an Uninstall: ...
    (microsoft.public.windowsxp.general)
  • Re: Cleanup after installing SP2
    ... Cleaning up after installing SP2: ... Installing SP2 leaves a lot of space on hard disk taken up by files you ... Delete the hidden folder of files that would be restored by an Uninstall: ...
    (microsoft.public.windowsxp.customize)
  • Re: Anyone use Farstone Virtualdrive 8 on XP/SP2 ?
    ... > Windows cannot read from this disk. ... > or it could be using a format that is not compatible with windows. ... like Alcohol and Daemon Tools before installing SP2. ...
    (microsoft.public.windowsxp.general)
  • Re: evil SP2 while installing SP2 i heard a strange noise come from HDD
    ... tSK, tSK, TO CheapAIDisk. ... >> while i was half way installing SP2 my hard drive disk ... >If your hard disk made a strange noise, ...
    (microsoft.public.windowsxp.customize)