Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation with Outlook 2007
Message
From
01/09/2008 15:48:43
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01310442
Message ID:
01343888
Views:
22
Thanks! That seemed to work.

>Remove OLEPUBLIC clause.
>
>>I got the code to work and tested on another machine that has Outlook 2007. However, I am unable to compile the EXE on my machine (which does not have Outlook 2007) and get error "Type Library {00062FFF-0000-0000-C000-000000000046}#9.3 not found." Is there any way to compile the exe on my machine without installing Outlook 2007?
>>
>>>You can use Object Browser, as usual
>>>
>>>DEFINE CLASS myclass AS session OLEPUBLIC
>>>
>>>	IMPLEMENTS ApplicationEvents IN {00062FFF-0000-0000-C000-000000000046}#9.3
>>>	
>>>	*IMPLEMENTS ApplicationEvents IN "C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE12\MSOUTL.OLB"
>>>
>>>	PROCEDURE ApplicationEvents_ItemSend(Item AS VARIANT, Cancel AS LOGICAL @) AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_NewMail() AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_Reminder(Item AS VARIANT) AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_OptionsPagesAdd(Pages AS VARIANT) AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_Startup() AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_Quit() AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>ENDDEFINE
>>>
>>>
Elyse Pomerantz
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform