PDA

Click to See Complete Forum and Search --> : Want to open a Word document in read only mode from Run Dialog


cssriraman
Sep 13th, 2005, 08:30 PM
Hi all,

How can I open a Word Document from Run Dialog or from command prompt in Read only mode?

Is it possible?

Please let me know.

Thanks,

CS.

RobDog888
Sep 13th, 2005, 08:59 PM
If you save the doc previously from your program there is a ReadOnly argument you can specify. Then the next time it is opened it will default to read only.

If not you can programmatically open the document in readonly by passing the argument like so...
Application.Documents.Open FileName:="C:\Test.doc", ReadOnly:=True
I dont think there is a switch for the commandline that will do that though. :(

cssriraman
Sep 14th, 2005, 01:04 PM
Hi all,

At last I found a solution for this. It would be easier to save the document as a Word Template and open that instead. So, no need to worry about file/folder permissions. Thanks guys! CS.