>>>I need to open a document in readonly. How should I modify the following code (wich is opening in edit mode).
>>>
>>>There must be a parameter to the Open Method but I don't know where to find it. VBA doesn't call this method the same way we do in VFP.
>>>
>>>goWordDoc = CreateObject( "Word.Application" )
>>>goWordDoc.Documents.Open( "Data\Doc_Fr.doc" )
>>>
>>>TIA
>>
>>goWordDoc.Documents.Open( "Data\Doc_Fr.doc" , ,.T.)
>>
>>This opens document in readonly mode.
>---
>Thank you. I assume the parameters are in the same order as VBA? ReadOnly is the 3rd one.
You can use VBA calls in the same manner in VFP except that you must remove the parameters names.
Carlos.
Saludos,
A.G.P.
---------