Hi Dick.
Can anyone tell me where to find the Word automation commands that can be used when creating an OLE control object in VFP? The MSN Office 2000 download document has great examples for VB but nothing for VFP. I don't know enough about OLE or VB to know how to translate the examples into usable VFP code.
In addition to what the others have told you, you can always use Word to record a macro and later edit it and translate the VBA code in the macro to VFP code by following these steps:
Suppose you have a line of VBA code that looks like this:
Selection.TypeText Text:= "yada yada yada"
1. Fully qualify the object. VBA assumes the application, but you have to add this for VFP so this becomes:
oWord.Selection.TypeText Text:= "yada yada yada"
2. Add parentheses:
oWord.Selection.TypeText( Text:=“yada yada yada” )
3. Remove named parameters:
oWord.Selection.TypeText( “yada yada yada” )
HTH
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only