Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating VFP from Word
Message
 
À
02/06/2008 11:09:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01320978
Message ID:
01321005
Vues:
17
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform