Document.Unprotect give runtime error 5485 - The password is incorrect



I am using Word.Application and Word.Document objects in Microsoft
Visual Basic 6.

When I open a word document in comments only mode from my application I
am protecting it using a password. I am assigning a GUID as password
and storing it in a global string variable. When I use the same global
string variable to unprotect the document, I get an error saying the
password is incorrect. I have tried printing the value of the global
string variable and it is same. Not sure how to get rid of this error.

Please help.

.



Relevant Pages

  • This document could not be registered
    ... Since updating to SP2 whenever I open a word document I get an error saying, ... registry and deleted every reference to office I could find then reinstalled ...
    (microsoft.public.word.newusers)
  • Re: Document.Unprotect give runtime error 5485 - The password is incorrect
    ... When I open a word document in comments only mode from my application I ... I am assigning a GUID as password ... string variable to unprotect the document, I get an error saying the ... Office.developer newsgroups would be a better place to ask such a ...
    (microsoft.public.word.docmanagement)
  • problem accessing word from ASP.NET
    ... I am having trouble accessing word document from ASP.NET and C#. ... When I am trying to access through website, it is returning an error saying ... to access website from different computer other than production server. ...
    (microsoft.public.word.application.errors)
  • Re: Word document opening Photoshop Elements.
    ... > I have since discovered that when I double click on a Word document, ... > opens Photoshop Elements 4, and as expected gives an error saying ...
    (microsoft.public.windowsxp.general)
  • Re: word webpages
    ... When Microsoft first included the ... HTML simply isn't powerful enough to describe a Word document. ... or maybe 1 to 10 pages carefully crafted in DreamWeaver. ...
    (microsoft.public.mac.office.word)

Loading