Trying to program a password check before attempting to open a doc

R

Rewly

Does anyone know if/how it's possible to for my program (C# preferred, but VB
is okay) to check if a document is password protected before attempting to
open it?

If not, is there any way to get around the annoying "Password Required" box
that pops up (and halts my program)?

Thanks for any time you can give this.
 
T

tsract

There is the "HasPassword" property of the Document object. I have not
experimented with it myself, but I thought this may be a good place to start.

Hopefully, you won't have to open the document to read this property :)
 
Top