TO CHECK FOR PASSWORD

A

apondu

Hi,

I wanted to know how to check whether the word document which i am
trying to open during the automation of the word is password protected
or not. And how to deal with the documents that are password protected
and how to deal with the documents that are not password protected. I
am using C#.NET for the automation of the word documents. It would be
very helpful if u could provide some code snippets.

Thanks for the help

Govardhan
 
J

Jonathan West

apondu said:
Hi,

I wanted to know how to check whether the word document which i am
trying to open during the automation of the word is password protected
or not. And how to deal with the documents that are password protected
and how to deal with the documents that are not password protected. I
am using C#.NET for the automation of the word documents. It would be
very helpful if u could provide some code snippets.

Thanks for the help

Govardhan

Take a look at this article. The code is VBA, but you should be able to
adapt it.

Skipping Password-Protected Documents in a Batch Process
http://www.word.mvps.org/FAQs/MacrosVBA/CheckIfPWProtectB4Open.htm


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
A

apondu

Hi,

Thanks a lot for the response. I'll try tht article and see whether it
works out for me.

Thank You

Govardhana
 

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