>>I am using word automation code to open word documents, example:
>>
>>oWord = CREATEOBJECT("Word.Application")
>>oWord.VISIBLE = .T.
>>oDocument = oWord.Documents.ADD(thisform.wdFile)
>>
>>There are many documents in different folders and we want the users to be able to pull them up and view them, but not change them. It would be very time consuming to go through all of them and save each one as read only and I was wondering if there was a way to just open the document up as read only using the code?
>_________
>Kevin,
>
>this should work. They can use the SaveAs though
>
>>oWord = CREATEOBJECT("Word.Application")
>>oWord.VISIBLE = .T.
>
>ReadOnlyMode = .t.
>
>oWord.Documents.Open(m.thisform.wdFile, , m.ReadOnlyMode)
>
Thanks for the help. I was looking thru the Microsoft Office Automation with Visual Foxpro book I have and didn't see anything about opening as readonly.
``` Appreciate a normal day, it is always better than a bad one ```
Kev