|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Opening Password Protected Word Document in OLEHow can a password be provided to any password protected document while
opening in an OLE object? On Sun, 25 Jun 2006 23:25:02 -0700, Imtiaz Qamar <ImtiazQa***@discussions.microsoft.com> wrote:
¤ How can a password be provided to any password protected document while ¤ opening in an OLE object? There is a password property in the Open method of the Documents collection: Dim objWord As Word.Application Dim objDocument As Word._Document objWord = CreateObject("Word.Application") objDocument = objWord.Documents.Open(FileName:="C:\Test Files\Test1.doc", PasswordDocument:="password") '... '... objDocument.Close() objDocument = Nothing objWord.Quit() objWord = Nothing Paul ~~~~ Microsoft MVP (Visual Basic)
Resolution in VB.NET
Big Imagelist Out Of Memory Lost with creating a db connection... help!? Using an object from a Generically defined class as a variable. Very strange string problem using ASCIIEncoding passing values to html document from .Net app Is it possible to order a Visual Basic 2005 Express CD from Microsoft? Using SOAP with VB.net Mutiple projects under one solution - can't find a class in the first Dynamically Creating A CSS Class |
|||||||||||||||||||||||