>>>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.