add-in

Outlook 2010 Com addin - NewExplorer never fires

谁说胖子不能爱 提交于 2019-11-27 16:16:00
For some reason in my app my FolderSwitch works on the main Explorer that opens with the application but the NewExplorer event never fires, so obviously the FolderSwitch event won't fire on a new Explorer. I can't work out why the event doesn't fire. private List<_Outlook.Explorer> ListOfExplorerWindows = new List<_Outlook.Explorer> { }; private _Outlook.Application Application; public void OnConnection(object Application, Extensibility.ext_ConnectMode ConnectMode, object AddInInst, ref Array custom) { this.Application = (_Outlook.Application)Application; } public void OnStartupComplete(ref

Write Excel Addin with VBA and then Put a button that trigger it

我的梦境 提交于 2019-11-27 14:32:41
I have written a simple excel add-in with VBA, it contains a form and related codes. after saving it as add-in and then installing it in Excel, nothing happened! I need to put a button somewhere in ribbons that trigger my add-in, you know like "Solver". I really need it, pleas tell me how. I really appreciate any suggestions. Try this, needs to be added to your add-in, either in a module or in ThisWorkbook. Private Const Button as String = "SomeName" Sub Auto_Open 'Or Private Sub Workboo_Open() in ThisWorkbook Dim CmdBar as CommandBar Dim CmdBarMenu as CommandBarControl Dim CmdBarMenuItem as

Visual Studio 08 Spell Check Addin? [closed]

做~自己de王妃 提交于 2019-11-27 13:41:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . If possible one that supports at least spell checking: C# string literals HTML content Comments 回答1: The plugin from Microsoft's Mikhail Arkhipov does HTML and Comments, I don't believe it does C# strings, though. I use the Agent Smith plugin for ReSharper for that. 回答2: If you're using ReSharper, there's a free

VSTO Add-ins, COMAddIns and RequestComAddInAutomationService

走远了吗. 提交于 2019-11-27 09:47:59
Please see 1st Edit (the screenshot at the bottom): I've followed this article to have a Winform app trigger a VSTO Add-In method: http://blogs.msdn.com/b/andreww/archive/2007/01/15/vsto-add-ins-comaddins-and-requestcomaddinautomationservice.aspx At the end of the above article the author mentions a issue and tries to ameliorate it here: http://blogs.msdn.com/b/andreww/archive/2008/08/11/why-your-comaddin-object-should-derive-from-standardolemarshalobject.aspx I have been through the code several times now and the method to derive StandardOleMarshalObject to ameliorate the exception does not

Is there a way to access a Ribbon (XML) at run time?

北城余情 提交于 2019-11-27 06:45:48
问题 I'm working on a Word 2007 app-level add-in. So far, I haven't experienced major obstacles except for converting the add-in's Ribbon interface to XML. I have to use Ribbon XML because the feature I'm working on can only be done this way. The problem is that by switching to Ribbon XML I can no longer access the interface at run time via Globals.Ribbons. This link http://msdn.microsoft.com/en-us/library/bb772088.aspx does a good job explaining how to access a Visual Designer Ribbon but it

How to get the “KeyPress” event from a Word 2010 Addin (developed in C#)?

给你一囗甜甜゛ 提交于 2019-11-27 05:16:28
How can I "catch" the KeyPress event from a Word 2010 Addin developed in C#? Note: I'm not looking for "complex" solutions like hooking stuff, but for the nice and tidy .NET even from the object model. The application object I have "in my hands" is: Microsoft.Office.Interop.Word.Application Best Regards Unfortunately there is nothing built-in in the Word API or VSTO which can pick up key strokes, more info on this can be found here I've been searching for a feasible solution for some time but the best I could come up with was handling it through Windows API using hooks, it's likely you will

How can an Excel Add-In respond to events in any worksheet?

梦想的初衷 提交于 2019-11-27 04:33:59
Our workbooks are server-generated SpreadsheetML , which cannot include any VBA code. Creating native Excel files or Excel 2007 XML files is also not an option, unfortunately. So, I have an Excel Add-In (VBA, not XLL) that each of our users installs to add some extra UDFs, etc. that our workbooks need. This works great, but now I need to have a macro that needs to execute every time the user changes the text in any cell, regardless what workbook they are actively using at the time. So far, I've created a new Class module (SheetChangeHandler) in my Add-In, with the following code: Option

How to call a VSTO AddIn method from a separate C# project?

…衆ロ難τιáo~ 提交于 2019-11-27 03:30:39
问题 I have a C# Excel Add-in project "MyExcelAddIn" that has a public method Foo() to do something complex. For testing purposes, the add-in also defines a toolbar button which is wired to Foo() so I can test this and verify that clicking the button calls Foo() and does what I want it to do. This is fine. Now I want to call this method from a C# Windows Forms project. In the Windows Forms project I can create an Excel instance and make it visible and verify that my VSTO add-in is running as I can

Visual Studio: How to write Editor Extensions with WPF

♀尐吖头ヾ 提交于 2019-11-27 03:20:49
问题 Im trying to write a editor extension for Visual Studio. I have the downloaded VS SDK and created a new Visual Studio Package project. But the dummy control created for me is a Windows Forms control and not a WPF control. I'm trying to replace it with a WPF-control but not doing so well. Is this possible anyhow? Another related question: Is it only possible to write text-editors? What I really want is a editor that looks more like a form with many different fields. But it doesn't seem to be

Add an Item to the visual studio folder right-click menu within AddIn

若如初见. 提交于 2019-11-27 02:57:41
问题 I want to add a menuitem to the right-click=>Add menu in visual studio 2012 solution explorer. When click the custom item I can add a project with my template. I developed a Visual Studio Add-In to do it but I get into some trouble. I am able to add a menuitem to the right-click menu but I can't get it to meet my requirement. The menuitem should be the submenu of "Add". Not a root item. I also need the menuitem to show only when I right-click on a folder named "Areas". I don't want it to show