Disabling word application pop up

S

Sachin

hi
i am programming for office using interops in C#.

whenever we open a word document using Documents.Open method ,

if the file is password protected then it asks for password , but i do not
want such prompts ,is thete any way to identify if a file is password
protected and just do not try to open it
 
C

Cindy M.

Hi Sachin,
i am programming for office using interops in C#.

whenever we open a word document using Documents.Open method ,

if the file is password protected then it asks for password , but i do not
want such prompts ,is thete any way to identify if a file is password
protected and just do not try to open it
See if the information in this article helps:
http://www.word.mvps.org/FAQs/MacrosVBA/CheckIfPWProtectB4Open.htm

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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