Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating VFP from Word
Message
From
02/06/2008 11:13:31
 
 
To
02/06/2008 11:09:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01320978
Message ID:
01321005
Views:
16
>>>I have seen quite a lot of samples of VFP controlling Word or Excel, but I would like to see something the other way round - a Word macro that does something - anything - with Visual FoxPro. Any sample, to help me get started, would do.
>>>
>>>TIA,
>>>
>>>Hilmar.
>>
>>
>>Dim oVFP
>>oVFP = CREATEOBJECT([VisualFoxPro.Application])
>>oVfp.DoCmd(....)
>>
>>
>>
>>Never used it though.
>
>So, I guess .DoCmd() can be set to any valid VFP command, right? Do you have any idea how data would be exchanged? E.g., do some VFP work, and get some result back to Word.

I would write an OLEPUBLIC Class that could do what you want to do and return an XML to word.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform