是否可以通过他们的插件添加对c#或vb.net的其他语言的支持?我的意思是,像完全控制IDE一样,调试包括在内.
我在WPF写一个应用程序.让我所有的转换器变得简单,让人厌烦.
我环顾四周找到了WPFix.这看起来不错,但近一年内没有任何发布,看起来已经废弃了.
有没有人用过这个?它稳定吗?有没有人对XAML中允许使用Lambdas的其他解决方案有任何建议(或者避免使用大量的转换器)?
有没有办法判断Outlook 2007中的当前检查器窗口是读取窗口还是"撰写"窗口?
我知道我们可以捕获事件,并在其上设置标志,但我不想捕获新的/回复/转发事件.有没有办法从Inspector对象中告诉它?任何财产?任何MAPI属性?
将赞赏正确方向的指针.
问候,
我正在开发一个 MS Word 插件。为此,我想知道如何获取当前在 word 文档中选择的文本,然后对其执行特定于应用程序的操作。
感谢您的帮助。
我期待创建一个Visual Studio AddIn,它可以帮助我启动自己的调试过程.我想保持原始的基于F5的调试完好无损,因此我不想拦截该调用并需要单独的AddIn.
有什么建议
我正在开发一个 Microsoft Outlook 插件,我在“插件”选项卡名称中添加了一个按钮OPENISMS。我可以看到该按钮,但是单击时事件不会被触发。我不知道它为什么会这样。请在下面找到添加按钮并向其附加事件的代码。任何帮助将不胜感激。
private void AddButtonToNewDropdown()
{
    Office.CommandBar commandBar = this.Application.ActiveExplorer().CommandBars["Standard"];
    Office.CommandBarControl ctl = commandBar.Controls["&New"];
    if (ctl is Office.CommandBarPopup) 
    {
        Office.CommandBarButton commandBarButton;
        Office.CommandBarPopup newpopup = (Office.CommandBarPopup)ctl;
        commandBarButton = (Office.CommandBarButton)newpopup.Controls.Add(1, missing, missing, missing, true);
        commandBarButton.Caption = "OpenISMS";
        commandBarButton.Tag = "OpenISMS";
        commandBarButton.FaceId = 6000;
        //commandBarButton.Enabled = false;
                      commandBarButton.OnAction = "OpenISMSThruMail.ThisAddIn.ContextMenuItemClicked";
        commandBarButton.Click += new Office._CommandBarButtonEvents_ClickEventHandler(ContextMenuItemClicked); 
    }
}
private void ContextMenuItemClicked(CommandBarButton Ctrl, ref bool CancelDefault)
{
    if (currentExplorer.Selection.Count > 0)
    {
        object selObject = currentExplorer.Selection[1];
        if (selObject is MailItem)
        {
            // …使用:VS 2012,InstallShield 2012 Spring Express
对于我的Excel加载项,我需要重新分配到先决条件: - Microsoft .NET Framework 4.5 Full - 用于Office运行时的Visual Studio 2010工具
在任何情况下,.NET Framework都没有问题.我通过设置或网络下载重新分发它.一切都好.
但是使用VSTO我遇到了一些麻烦:1)"网络下载"无法正常工作.即使我使用这个建议 - http://msdn.microsoft.com/en-us/library/vstudio/cc442767.aspx#Configure
毕竟,我下载了vstor_redist.exe(~40 Mb)并将其添加到安装程序中.2)安装程序开始安装vstor_redist.exe并且确实如此!但后来我看到一条奇怪的InstallShield消息,表明VSTO安装失败了.然而,安装后应用程序正常工作.
两个问题:如何使用Web下载选项重新分发VSTO?如何避免出现无用的"安装失败消息"?看来这些都是InstallShield的bug ...
罗马
我正在尝试创建一个简单的Outlook 2010加载项,以响应新的附件事件.下面的代码仅在我取消注释MessageBox.Show行时才有效.但删除它似乎不添加事件处理程序.我对程序流的缺失是什么意味着模态消息框会影响事件处理程序的位置?
public partial class ThisAddIn
{
    private void ThisAddIn_Startup(object sender, System.EventArgs e)
    {
        Application.Inspectors.NewInspector += Inspectors_NewInspector;
    }
    void Inspectors_NewInspector(Outlook.Inspector Inspector)
    {
        Outlook.MailItem mailItem = Inspector.CurrentItem as Outlook.MailItem;
        if (mailItem != null)
        {
            if (mailItem.EntryID == null)
            {
                mailItem.BeforeAttachmentAdd += mailItem_BeforeAttachmentAdd;
                //System.Windows.Forms.MessageBox.Show("Twice");
            }
        }
    }
    void mailItem_BeforeAttachmentAdd(Outlook.Attachment Attachment, ref bool Cancel)
    {
        Cancel = true;
    }
    private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
    {
    }
我需要开发能够使用从远程服务器下载的选项卡扩展现有表单的Outlook扩展.例如,在约会表单中应显示其他选项卡.此选项卡中的表单定义从Web服务下载并使用WPF进行呈现.此选项卡的数据也来自服务器,并绑定到表单字段.最后一件事 - 当表单保存时,它也应该提交给这个远程服务器.
它应该在Outlook 2003和2007中有效.
主要问题是:
UPDATE
非常感谢您的回答!当然,有太多不同的问题,所以我必须把它分解成几个部分.阅读回复并做完作业后我想恢复:
我需要测试我的button.Click事件是否为空.这是c#中的事件:
button.Click += new Office._CommandBarButtonEvents_ClickEventHandler(Lancement_Formualire_Event);
我测试过
(button.Click == null) 
但编译器拒绝这样做.
我有一些亲子关系的实体:家庭(父母)和更新(孩子).我想阅读没有相应更新的家庭列表.只有17个家庭,但大约有60,000个更新,所以我真的不想要更新.
我使用EntitiesToDTOs从Family实体生成DTO,并创建一个汇编程序,用于将Family实体转换为FamilyDTO.汇编程序的ToDTO方法如下所示:
public static FamilyDTO ToDTO(this Family entity)
{
    if (entity == null) return null;
    var dto = new FamilyDTO();
    dto.FamilyCode = entity.FamilyCode;
    dto.FamilyName = entity.FamilyName;
    dto.CreateDatetime = entity.CreateDatetime;
    dto.Updates_ID = entity.Updates.Select(p => p.ID).ToList();
    entity.OnDTO(dto);
    return dto;
}
当我运行汇编程序时,我发现每个生成的FamilyDTO都填充了Updates_ID列表,尽管EF模型(edmx文件)的延迟加载设置为true.是否可以配置EntitiesToDTOs以支持延迟加载子元素,还是始终使用预先加载?我在EntitiesToDTOs中看不到任何可以设置为在生成汇编程序时支持延迟加载的选项.
顺便说一下,我是一个使用EntitiesToDTOs几乎每天都重新组装汇编程序的大型团队的一员,所以如果可能的话,我宁愿不手工修改汇编程序.
我有一本包含 .xlam 的工作簿,当我查看 VBA 时,我看到了 .xlaml 的结构
VBAProject(Helper.xlam)
Microsoft Excel 对象
Masterinfo(MasterInfo)
Sheet1 (Reg)
ThisWorkbook
表单
Form1
模块
Module1
类模块
cm1
如何显示工作表MasterInfo和sheet1以查看内容?
add-in ×13
c# ×5
outlook ×4
vsto ×3
.net ×1
dto ×1
excel ×1
excel-2013 ×1
excel-addins ×1
mapi ×1
ms-word ×1
office-2010 ×1
outlook-2010 ×1
outlook-form ×1
wpf ×1
xaml ×1