【问题标题】:Simple Outlook 2007 (or newer) plugin / addin with VS 2010 Express带有 VS 2010 Express 的简单 Outlook 2007(或更新版本)插件/插件
【发布时间】:2012-11-03 08:04:22
【问题描述】:

我被困住了。我一直在尝试寻找或自己创建一个简单的准系统示例,说明如何为 VS 2010 Express 创建 Outlook 插件。我知道这在 VS 2010 Pro 中更简单,但是在 express 版本中真的不可能吗?

我的目标是在用户点击 Outlook 中的“发送按钮”时获得“控制权”,例如显示消息框或类似内容。

我一直在尝试使用 Microsoft.Office.Interop.Outlook;微软.Office.Core;运气不好。

有没有人有一个简单的例子,它在 express 版本上运行?

我正在使用的一些非功能性代码:

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);
        }
    }

}

【问题讨论】:

    标签: c# outlook outlook-addin visual-studio-express


    【解决方案1】:

    您必须选择NetOffice,与 express 工作室完美配合,在 2010 年和 2012 年尝试过。
    NetOffice - MS Office in .NET - Home

    【讨论】:

      猜你喜欢
      • 2011-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多