我被卡住了。我一直在尝试寻找或创建自己的简单示例,该示例如何为VS 2010 Express创建Outlook插件。我知道在VS 2010 Pro中这样做比较简单,但是,在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);
}
}
}
最佳答案
您必须选择NetOffice,与Express Studio完美搭配,尝试过2010和2012。
NetOffice - MS Office in .NET - Home
关于c# - VS 2010 Express的简单Outlook 2007(或更新版本)插件/插件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3352909/