How to Tell if Word Doc is Password-Protected

L

Lisa

Is there a way to programatically check if a Word 97/2000/2002 document is
password protected before trying to open it? What I need to be able to do
is to have my VB program connect to Word using OLE, then open the document
in order to print it on the default printer, but when I try to open a
password-protected Word document, my program crashes.

TIA
Lisa
 

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