How do I pass the password parameter to winword programmatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am launching winword programmatically...
client_host('"C:\Program Files\Microsoft Office\Office11\winword.exe"
'||v_file_name);
This works, but the user is then asked for the password.
The user does not know the password, and I need to include it in the call.
How do I do this?
 
Hi =?Utf-8?B?Tm9vbCBGbG93bg==?=,
I am launching winword programmatically...
client_host('"C:\Program Files\Microsoft Office\Office11\winword.exe"
'||v_file_name);
This works, but the user is then asked for the password.
The user does not know the password, and I need to include it in the call.
How do I do this?
You cannot. Word is not designed with commandline parameters that allow you
to supply a password when opening a file. Best you could do would be to
AUTOMATE Word, then use the Documents.Open method to supply the password.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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

Back
Top