Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Automation
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00354217
Message ID:
00354236
Views:
12
Here is some sample code that should help:
Public oOutlook,oOutlookEvents,oVFPCom
*/ Make sure outlook is already started
oOutlook       = GetObject(,"outlook.application")
oOutlookEvents = Createobject("OutlookEvents")
oVFPCom = Createobject("vfpcom.comutil")
oVFPCom.BindEvents(oOutlook,oOutlookEvents)


DEFINE CLASS OutlookEvents AS custom


	PROCEDURE ItemSend(Item,Cancel)
	* Add user code here
   	   Messagebox(item.subject)
	ENDPROC


	PROCEDURE NewMail
	* Add user code here
	ENDPROC


	PROCEDURE OptionsPagesAdd(Pages)
	* Add user code here
	ENDPROC


	PROCEDURE Quit
	* Add user code here
	ENDPROC


	PROCEDURE Reminder(Item)
	* Add user code here
	ENDPROC


	PROCEDURE Startup
	* Add user code here
	ENDPROC


ENDDEFINE
>Is there any way to trap for outlook events from within Vfp6 such as a user clicking on the send button.
>
>Thanks
>
>Anthony
Previous
Reply
Map
View

Click here to load this message in the networking platform