Information générale
Catégorie:
COM/DCOM et OLE Automation
>>Try ApplicationEvents2. That's what the Object Browser shows having all the methods.
>
>How can I expose ApplicationEvents2?
>
>CREATEOBJECT( 'Word.ApplicationEvents2' ) Reports "Class Definition for "WORD.APPLICATIONEVENTS2" not found.
>
>Referencing Obj.ApplicationEvent2 to on a valid Word Application object returns an OLE error "Unknown name"
>
>tia.
According to what Della wrote in AutoFox, you should be able to do it like this:
oVFPCOM = CreateObject("vfpcom.comutil")
oWord = CreateObject("Word.Application")
oVFPCOM.ExportEvents(oWord, "WordEvents.PRG")
and the generated program should have the ApplicationEvents2 interface.
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement