gpt4 book ai didi

c# - 带有 VS 2010 Express 的简单 Outlook 2007(或更新版本)插件/插件

转载 作者:太空宇宙 更新时间:2023-11-03 14:28:06 27 4
gpt4 key购买 nike

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

我的目标是在用户点击 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);
}
}

}

最佳答案

你必须去 NetOffice , 与 express studios 完美配合,尝试过 2010 和 2012。
NetOffice - MS Office in .NET - Home

关于c# - 带有 VS 2010 Express 的简单 Outlook 2007(或更新版本)插件/插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3352909/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com