A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Hooking up the ItemSend Event...



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old May 19th 09, 07:40 PM posted to microsoft.public.outlook.program_addins
Marketware
external usenet poster
 
Posts: 6
Default Hooking up the ItemSend Event...

I create an Application object to Outlook with this code:

public Outlook.Application outlookApp = null;

Outlook.ApplicationClass _app = new Outlook.ApplicationClass();
outlookApp = (Outlook.Application)_app;

Then I try to hookup the ItemSend event as follows:

outlookApp.ItemSend +=
new
Microsoft.Office.Interop.Outlook.ApplicationEvents _11_ItemSendEventHandler(OnSend);

I get the following error:

Cannot implicitly convert type
'Microsoft.Office.Interop.Outlook.ApplicationEvent s_11_ItemSendEventHandler'
to 'Outlook.ApplicationEvents_ItemSendEventHandler'

Can anyone tell me what I am doing wrong? Thanks!!

bob




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No entryid on Itemsend Event [email protected] Add-ins for Outlook 3 March 2nd 09 04:20 PM
Can I capture the event ItemSend from a macro? Totem Outlook and VBA 13 April 25th 08 02:05 PM
ItemSend Event Catalin Outlook and VBA 4 January 17th 08 07:17 PM
Write RTF-Body on ItemSend event Thomas Add-ins for Outlook 2 February 12th 07 11:22 AM
ItemSend event differences betweek W2K & WXP Lionel H Outlook and VBA 4 October 20th 06 03:16 PM


All times are GMT +1. The time now is 06:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.