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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top