hi

I have written a VB program which converts the doc file
into a txt file.It does it silently. i mean the Visible
property of the word application object is set to false.
The DisplayAlerts property is also set to false.

The Problem :
If a doc file is password protect (modify or Open)a dialog
box pops up and waits for password i do not want this
password to pop up ? how do i convert? is there a way in
which i can do it silently ?
if not i want this dialog boxes to come to front of all
other applications.

regards
maneesh

Removal of Password Protection by Robert

Robert
Wed Aug 13 13:36:35 CDT 2003

I am not sure about unprotecting an entire document, but
when you unprotect just the formfields you simply give
word the password to use.

ex.

ActiveDocument.Unprotect Password:="PaSsWoRd"

If you didn't have a password you would simply use:

ActiveDocument.Unprotect

I hope this helps you find the solution.
>-----Original Message-----
>hi
>
>I have written a VB program which converts the doc file
>into a txt file.It does it silently. i mean the Visible
>property of the word application object is set to false.
>The DisplayAlerts property is also set to false.
>
>The Problem :
>If a doc file is password protect (modify or Open)a
dialog
>box pops up and waits for password i do not want this
>password to pop up ? how do i convert? is there a way in
>which i can do it silently ?
>if not i want this dialog boxes to come to front of all
>other applications.
>
>regards
>maneesh
>.
>