add-in

How to create excel add-in (excel 2003 or previous version) package with activeX dll?

早过忘川 提交于 2019-12-02 17:32:27
问题 I am new to excel add-in prgramming and I am having a existing excel add-in project need to modify. The plug-in has 2 parts, one is programmed in VB and compiled into a ActiveX DLL file, the other part is inside the excel as an add-in. I already modified the source code of the DLL and recompiled a new DLL, but I don't know what is the correct way to re-package the 2 parts into one excel add-in package and give to my colleagues. I tried to remove the reference to old DLL from excel, but it

Shared Add-ins for Outlook 2007 Capturing ReplyToAll Event

南楼画角 提交于 2019-12-02 16:18:21
问题 I am using VS 2010 & Dot Net Framework 2.0. I have created a project in Extensibility->Shared Add-ins for Outlook. I am trying to capture ReplyToAll Event it is not getting fired. Please look the below code: OnConnection Method inspectors = applicationObject.Inspectors; inspectors.NewInspector += new Outlook.InspectorsEvents_NewInspectorEventHandler(inspectors_NewInspector); void inspectors_NewInspector(Microsoft.Office.Interop.Outlook.Inspector Inspector) { mailItem = null; try { Outlook

Add standard command button “New Slide” to custom ribbon in office add-in

馋奶兔 提交于 2019-12-02 15:54:03
问题 I have created my customized ribbon in an addIn. Now I would like to add the New Slide command that exist in home screen (see screenshot below). 回答1: You can add built-in controls to your custom tab by soecifying their IdMso values. See Office 2013 Help Files: Office Fluent User Interface Control Identifiers . You can read more about the Ribbon UI in the following series of articles in MSDN: Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3) Customizing the 2007 Office

Word online not sending et parameter when user accesses add-in as trial

早过忘川 提交于 2019-12-02 15:13:21
问题 We are having a problem with our add-in, which is a Word only task pane add-in with add-in commands. The add-in has passed the review and is published in the store. We can successfully sign up for a trial in the Office store and get the instructions on how to activate the add-in a document. The add-in can be added to a document, at least to the point of showing the add-in command menu and button. However, when we try to start the add-in (as in opening it's task pane window by clicking the

How do you use WiX to deploy VSTO 3.0 addins?

二次信任 提交于 2019-12-02 14:43:23
I want to deploy a VSTO 3 Application Level Word 2007 addin that I've written with Visual Studio 2008. I see that WiX has an extension named WixOfficeExtension that looks like it might have this functionality, but I can't find any documentation for it, and I can't discern it's purpose from the source code. Has anyone attempted this before, and were you able to pull it off successfully? This is the code I ended up using. I basically ported the examples from MSDN to use WiX. Note: This specific solution is only for a Word 2007 addin, but the case for Excel is very similar. Simply modify the

How to programmatically open an Outlook Shortcut

限于喜欢 提交于 2019-12-02 13:19:50
问题 I'm wondering if there is a way of programmatically opening an Outlook Shortcut from my addin. I've created the shortcut as follows Sub AddShortcut() Dim myOlBar As Outlook.OutlookBarPane Dim myolGroup As Outlook.OutlookBarGroup Dim myOlShortcuts As Outlook.OutlookBarShortcuts myOlBar = Application.ActiveExplorer.panes.Item("OutlookBar") myolGroup = myOlBar.Contents.Groups.Item(1) myOlShortcuts = myolGroup.Shortcuts myOlShortcuts.Add("http://microsoft.com/", _ "MSHomepage", 1) End Sub I'm

How to load/unload Word Add-in programatically?

随声附和 提交于 2019-12-02 09:49:55
I'd like to know how I can programatically load and unload a VSTO add-in in Word. I'm using Word 2007 and VS2010 with C#. I thought I might have some luck with using the Microsoft.Office.Interop.Word.COMAddins and .Addins properties, but the .Addins property gives an empty list and COMAddins is a collection of opaque COM objects. An alternative question suggests making the ribbon menu invisible, but I actually want to unload the add-in altogether. I had similar requirement and achieved it by little cheat. I had a addin called AddinLauncher (with no ribbons) which will look for the user type

Shared Add-ins for Outlook 2007 Capturing ReplyToAll Event

余生颓废 提交于 2019-12-02 09:12:40
I am using VS 2010 & Dot Net Framework 2.0. I have created a project in Extensibility->Shared Add-ins for Outlook. I am trying to capture ReplyToAll Event it is not getting fired. Please look the below code: OnConnection Method inspectors = applicationObject.Inspectors; inspectors.NewInspector += new Outlook.InspectorsEvents_NewInspectorEventHandler(inspectors_NewInspector); void inspectors_NewInspector(Microsoft.Office.Interop.Outlook.Inspector Inspector) { mailItem = null; try { Outlook.NameSpace ns = Inspector.Session; Outlook.MAPIFolder inbox = ns.GetDefaultFolder( Outlook.OlDefaultFolders

How programatically set text styling in ms word?

江枫思渺然 提交于 2019-12-02 07:56:53
Situation: I'm working with MS Word document's contents. I'm changing color of some words according to some rule. Words coloring occurs on each KeyPress event. Problem: When user types word which satisfies my rule typed word become colored and infects future text which will be typed right after colored text . But future text may not satisfay the rule. From the one hand, just typed text shouldn't be colored but from the other hand it already colored because it unfortunately goes right after colored text and was infected by it's style. Question: How grab Word.Range object corresponding to the

Wait Cursor in VSTO word add-in application

岁酱吖の 提交于 2019-12-02 07:55:21
I am creating a VSTO word add in. i'm starting a long elaboration from ThisAddin and i would like to change the cursor to WaitCursor, so if I go to Globals.ThisAddIn.Application, there is no cursor property and i've tried with Cursor.Current = Cursors.WaitCursor; when starting the elaboration, and Cursor.Current = Cursors.Default; at the end of the elaboration, but doesn't work, the cursor doesn't change. Any ideas on how to do this? private static void SetCursorToWaiting() { Microsoft.Office.Interop.Word.Application application = Globals.ThisAddIn.Application; application.System.Cursor =