2010-07-28 107 views
2

我被卡住了。我一直在試圖找到或創建一個簡單的示例,介紹如何爲VS 2010 Express創建Outlook插件。我知道在VS 2010 Pro中這樣做更簡單,但是,在快速版本中這樣做真的不可能?簡單的Outlook 2007(或更新版本)VS 2010 Express插件/插件

我的目標是當用戶點擊Outlook中的「發送按鈕」時,獲取「獲取控件」,如顯示一個消息框或類似內容。

我一直在試圖與Microsoft.Office.Interop.Outlook玩; Microsoft.Office.Core;沒有太多的運氣。

有沒有人有一個簡單的例子,運行在快遞版本上?

一些非功能性的代碼,我跟打:

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Imaging; 
using System.Windows.Navigation; 
using System.Windows.Shapes; 
using Outlook = Microsoft.Office.Interop.Outlook; 
using Office = Microsoft.Office.Core; 

namespace WpfApplication1 
{ 
    /// <summary> 
    /// Interaction logic for MainWindow.xaml 
    /// </summary> 
    public partial class MainWindow : Window 
    { 
     public MainWindow() 
     { 
      InitializeComponent(); 

     } 

     public delegate void ApplicationEvents_11_ItemSendEventHandler(object Item, ref bool Cancel); 

     public void MyItemSendEventHandler(object Item, ref bool Cancel) 
     { 

     } 

     private void InternalStartup() 
     { 
      this.Startup += new System.EventHandler(ThisAddIn_Startup); 
      this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown); 
     } 
    } 

} 

回答