>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