Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE automation with Word
Message
From
10/06/1998 02:03:33
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00106095
Message ID:
00106589
Views:
26
>>>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.
---------
Previous
Reply
Map
View

Click here to load this message in the networking platform