Opening password protected Word Document in OLE Container
I have a VB6 Application using a form with an OLE Container.
A document is opened like:
ole1.CreateEmbed "C:\Test.doc"
This works fine, but when the document C:\test.doc is password protected, a password-entry box appears. I want the application to open the document automatically without interaction with the user.
Is it possible to pass the password to the document by passing it as a parameter or something like that, like the PasswordDocument property.
Re: Opening password protected Word Document in OLE Container
you may need to remove the document password first then reapply after opening in OLE or before closing your app