General information
Category:
ActiveX controls in VFP
Title:
How I can call winword methods or macros from foxpro program
Please answer to question.
I am using Visual FoxPro 5.0 and Word 97.
Foxpro program activate Word and then open the document.
Hereinafter Foxpro program must send to Word-server command to select all the text of opened document and copy selected text into clipboard.
I understand that WHOLESTORY, SELECTALL - is a methods.
I don’t know how correctly calling this methods.
Code of my FoxPro program:
ox=createobject('word.document')
ox.application.documents.open(Alltrim(Thisform.text1.value))
ox.wholestory or ox.selectall !!! NOT WORKING
In wordbasic help is any example how can use this methods. But I don’t understand how can calling such methods from foxpro program.
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