Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Word Doc Properties to Read-Only via OLE Automat
Message
 
To
12/02/2002 12:50:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00618945
Message ID:
00618958
Views:
7
>I am creating a Microsoft Word Document via OLE Automation in my program. I want to make the Document Read-Only after it has been created and saved to the users hard drive. Can this be done via automation?
>
>THanks
>>> Wes

Wes,
If you look at the Word object under Document there appears to be a ReadOnly property that says that its writeable. I'll try it and let you know.

I've had a go and you can't do it, your best bet it to close the document when you have created it then re-open it readonly.

If what you are trying to achieve is for the file on disk to be readonly then check out attrib or the system shell functions to change a files attributes.
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform