add-in

This addin caused outlook to start slowly

為{幸葍}努か 提交于 2019-12-23 10:55:13
问题 I am developing an Outlook Addin Project using C#.NET 4.5 But After I deploy, Sometimes outlook disables my addin, and shows this message. "This addin caused outlook to start slowly"" I dont know whats wrong with my addin. This has only a few codes, and ThisAddIn_Startup is empty in this project. Here is the code... public partial class ThisAddIn { private void ThisAddIn_Startup(object sender, System.EventArgs e) { } private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { }

C# Outlook get CompanyName property from Recipient

ぃ、小莉子 提交于 2019-12-23 09:04:15
问题 I am currently writing an Outlook 2010 AddIn using C#. What I want is to get the CompanyName property from a Recipient object that I pull from an AppointmentItem. So, having the Recipients of an AppointmentItem I want to find out the CompanyName of each Recipient, which might be an ExchangeUser. My code is this: Recipients recipients = appointmentItem.Recipients; foreach (Recipient rec in recipients) { resolved = rec.Resolve(); if (resolved) { ContactItem contactItem = rec.AddressEntry

Ribbon button not firing event set by onAction when clicked

余生长醉 提交于 2019-12-23 08:58:11
问题 I've designed an add-in to Outlook 2010 where I'm trying to fire (or, rather, catch) an event fired when a button is clicked as shown in this article. I've targeted the right XML (since the changes to it are seen on the ribbon). However, The event I'm trying to catch is either not fired at all or (more likely) fired an other way than what my listened is looking (listening?). I also tried to go by the reference on MSDN here, here and mostly here. To no avail, though... I wonder if it's got to

Add-ins not loading when opening excel file programmatically

笑着哭i 提交于 2019-12-23 05:45:31
问题 I've seen some similar problems described by others before but no real solution. And I'm sure there is one. I have a .XLA-add in configured to be loaded when I open up Excel. It works fine when I open documents or Excel it self. However, when my BI-system programmatically creates and opens an Excel-file the add-in does not get loaded. The BI-system opens Excel in a new instance so it does not help to have opened Excel on beforehand (and thereby the .XLA-add in) If i Check Options-Add Ins it

Slide animation when showing/hiding CustomTaskPane in VSTO

梦想的初衷 提交于 2019-12-23 03:19:08
问题 I have a CustomTaskPane in my VSTO project that I can show/hide using .Visible = true/false property. However it's an ordinary showing/hiding element with no animation whatsoever. However the "Smart Lookup" button, that comes with Excel 2016, also opens an Excel Pane by sliding left/right. I guess that the Smart Lookup addin is built in the newer technology using JavaScript instead of the outdated VSTO COM plugin and thus might have such feature. Am I able to have it in the VSTO plugin as

How to search for the name of the UserProperty in Outlook.MailItems, not their value

梦想与她 提交于 2019-12-23 01:08:06
问题 BACKGROUND: Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false). string propertyValue = "true"; string filter = "http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/IsProcessed LIKE \'%" + propertyValue + "%\'"; I am using this filter string in advancedSearch link to doc PROBLEM STATEMENT: My usecase is to search if these mailItems have any UserProperty assigned where name of

How to connect a ribbon button to a function defined in an Excel add-in?

你离开我真会死。 提交于 2019-12-22 17:57:58
问题 I'm using MSVS 2013 to create a C# MS Excel Add-In. In previous add-in paradigms, the ribbon class designer directly connected a ribbon button click event to function in the Add-In application class - now the ribbon functions are defined in the ribbon class, itself. What is the best way to access a function defined in the ThisAddIn class from the separate ribbon control class? 回答1: This is a simple method for doing this: private void butRefreshSelectedWorksheets_Click(object sender,

IE Protected Mode Problem?

谁说我不能喝 提交于 2019-12-22 12:39:28
问题 We've developed an ie-add (with add-in express) in which saves some information on locally. (to the application path) But without "run as administrator" or "disabling protected mode" it's not allowed. Is there any way to accomplish this? Any way to load add-in with administrator privilige? (manifest files does not work for dll's) or any way to disable protected mode with user approval? Thank you! 回答1: I don't think there's a way to disable Protected Mode programmatically. I assume we have to

C# - can't debug office word add-in

好久不见. 提交于 2019-12-22 08:46:23
问题 Here's what I did: From VS2010 > new C# Project (from Other Project Types > Extensibility > Shared Add-in) > some basic configuration in the Connect class After that I set in the project properties > debug > start external program, the path for winword (C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE) When creating a shared add in, the setup files are in a separate project, in the same solution. so i did a build for the add-in, and installed it. when i start word (separately or

Clear Microsoft Office Add-Ins cache

十年热恋 提交于 2019-12-22 00:32:44
问题 I wrote some code in an add-in for Microsoft PowerPoint 2007. I executed it. It said there was a problem. With help from a fellow member here, I rectified the problem. I compiled the new code and ran it. It still considers the old code and ignores the new one and still throws the same problem. The two versions of code are radically different in that they do not share the variables that the problem reports, thus my reason for being sure that the problem isn't in the code now. Clearly, MS