add-in

Excel OLE - .NET COM AddIn behaves differently when Excel is embedded in an application

烂漫一生 提交于 2019-12-13 00:24:55
问题 I have a .NET (C#) addin that uses a COM Shim dll to load itself into Excel. The addin works fine without any problem when Excel is run normally. The addin displays its own custom toolbar in Excel that is used to execute different commands. When I embed Excel into another application (e.g. DSOFramer etc), the addin starts behaving strangely. It seems that if I disable a button on its toolbar then it does not get enabled again after setting the Visible property. Also, I get a bunch of "Object

Extending the User Interface in Outlook 2010 to add to the Right Click menu

爱⌒轻易说出口 提交于 2019-12-12 21:30:45
问题 How can I extend that menu when I open Email and Right Click on the body menu? I want to add some features. I checked this Microsoft Developer Network Technical Article Extending the User Interface in Outlook 2010 and could not get what I need. 回答1: For #1 you may need access to the WordEditor from the active Outlook Inspector. See this post regarding how to get access to the WordEditor from the active inspector. You will need to work within the Fluent Ribbon UI to create context menus. You

How to manage add-ins in Visual Studio 2010?

怎甘沉沦 提交于 2019-12-12 20:08:05
问题 i have (at least) two addins installed in Visual Studio (2010 (Professional)). i would like to temporarily disable them. How can i manage addins in Visual Studio 2010? i tried using the Add-in Manager (Tools -> Add-in Manager...): But neither of my (at least) two addins appear. How can i manage addins in Visual Studio 2010? Looking at MSDN: How to: Deactivate and Remove an Add-In When you finish using an add-in, you can unload it from Visual Studio by clearing the check box next to its name

How do I get the selected text from a WordEditor Object (in Outlook2010) and Copy it to another Form?

て烟熏妆下的殇ゞ 提交于 2019-12-12 18:04:02
问题 i want to Copy selected Text from WordEditor(Body of Outlook Email) to another Form when i searched i found that part of code to Copy to new Word Document by using Microsoft.Office.Interop.Word.Document Outlook.MailItem mailItem; Outlook.Inspector inspector = mailItem.GetInspector; // Obtain the Word.Document object from the Inspector object Word.Document document = (Word.Document)inspector.WordEditor; // Copy the selected objects document.Application.Selection.Copy(); i always get Error with

Automatically loading Word Task Pane Office Add-in

六月ゝ 毕业季﹏ 提交于 2019-12-12 12:23:31
问题 We are developing a Word Task Pane Office Add-in (not VSTO) for internal organization documents In Word 2013 (desktop) when we insert the add-in and save the document, when we reopen that document the add-in is automatically loaded. In Word Online, this behavior is different, the add-in doesn't get automatically loaded. The user has to manually insert the add-in every time the document is opened. Is there a way to automatically load it in Word Online? Would running our own Office Web App

Where should I attach solution or project events in my Visual Studio add-in?

不羁岁月 提交于 2019-12-12 10:56:11
问题 Can anyone suggest the best place to add solution or project events, such as ProjectAdded, to a Visual Studio add-in? If I do this when the add-in connects then there's no solution loaded, so how can I tell when a solution has been loaded? For example, if I write an event to handle project items being added, where should I attach this? The event would be fired by the project, and that in turn by the solution, so I can't attach the events when the add-in connects because there is no solution

Add Trigger to Transition

穿精又带淫゛_ 提交于 2019-12-12 09:55:02
问题 How does one add a trigger to the "Properties-Constraints-Triggers" area of a state machine transition in Enterprise Architect? The quotes are how you get there manually within EA. What I've Tried Below, this actually results in the trigger being added to the state machine, but I need to link it to a specific transition. Variable stateMachine is of type EA.Element. EA.Element trigger = (EA.Element)stateMachine.Elements.AddNew("trigger", "Trigger"); State is of type EA.Element. connector is of

C# How to get the send of behalf email address in outlook add-in

吃可爱长大的小学妹 提交于 2019-12-12 09:38:45
问题 I'm trying to get the sender email address from email that is send using another email address. The sender as shows in outlook is ditribution-lists@domain.com on behalf of User Name [user.name@domain.com]. The MAPI object has a method SentOnBehalfOfName that returns "User Name" but not the email address. Does anyone know how to receive user.name@domain.com field? 回答1: using System; using System.Runtime.InteropServices; using System.Diagnostics; using System.Reflection; namespace Helpers {

Programatically Install Microsoft Access Add-In Using VBA

谁都会走 提交于 2019-12-12 08:57:52
问题 Finding information on Add-In development for Microsoft Access is like getting all of your teeth pulled! Yes I've found the couple Managed Add-In Articles written... but could find next to nothing for Un-Managed Add-Ins. I did find one great article which is very old in creating basically an unmanaged .mda project... which I've followed and created a add-in. Now I would like an automated way to deploy this add-in. I've seen it done from VBA with such tools as Rick Fisher's Find and Replace

Deploy Dotm File with format styles?

大兔子大兔子 提交于 2019-12-12 05:28:37
问题 I have developed a small VBA macro for Word 2007 / 2010 which uses some format styles (I am not sure that is the best translation, in my german version it is called Formatvorlagen. I mean the styles which are applied to text, like headers). The macro is deployed to the STARTUP Folder and essentially works - but the format styles are NOT loaded - so the macro cannot find them. So my question is: how can I deploy format styles to Word? I could overwrite normal.dot, but that is a crappy solution