shared-addin

Requirements for COM aggregate my custom IRibbonExtensibility implementation?

瘦欲@ 提交于 2019-12-24 03:25:47
问题 We have a stripped down Connect class which instantiates the addin's core from an other assembly. Our architectural design is to keep the UI and business logic separated from the loading module (= Connect class), but the restrictions of a shared Addin make us troubles. what we did in Connect.cs: [GuidAttribute("XYZ"), ProgId("XYZ")] public class Connect : Object, IDTExtensibility2, ICustomQueryInterface { ... CustomQueryInterfaceResult ICustomQueryInterface.GetInterface(ref Guid iid, out

Sort Excel table (ListObject) on protected sheet using Excel Interop

眉间皱痕 提交于 2019-12-12 03:06:37
问题 Sorting Excel tables (ListObjects) is not allowed on protected sheets. You'll see the following error message: I spent weeks looking for a solution with no success. Everything out there is outdated with Excel 2007 code samples. There are no tutorials or guides on how circumvent this limitation. Here's how I was able to finally overcome.. 回答1: There is no trappable event when sorting from the Excel's filter drop-down menu of a table. You can, however, trap the events when an ascending,

MS Word Plugin, Adding a button which pops up on right click on selected text

走远了吗. 提交于 2019-12-09 23:44:29
问题 I am working on a shared addin for MS Word 2007. I would like to add a button which pops up when selected text is right clicked. The attached snapshot should make this clear. Currently, the user has to select the text and then click a button on a custom control. It would be a lot easier if after selecting the text, s/he could right click it and press the relevant button in the popup. 回答1: You need to extend the correct contextmenu. The following link describes in words (no source code) how

MS Word Plugin, Adding a button which pops up on right click on selected text

倾然丶 夕夏残阳落幕 提交于 2019-12-04 19:48:32
I am working on a shared addin for MS Word 2007. I would like to add a button which pops up when selected text is right clicked. The attached snapshot should make this clear. Currently, the user has to select the text and then click a button on a custom control. It would be a lot easier if after selecting the text, s/he could right click it and press the relevant button in the popup. You need to extend the correct contextmenu. The following link describes in words (no source code) how this can be achieved: Shared Addin using Word Maybe this Link might help a little with the coding. I haven't