add-in

how to get the object associated with a context menu in an office add-in

I have a simple COM add-in for office that I am developing (for access specifically). I have added a custom commandbarbutton item to the context menu that pops up when you right click on an object in the navigation pane. This works fine. The debug code I added runs (currently just a msgbox command). The one thing I cannot figure out ...

DI (Autofac) in a plugin architecture: Is one separate DI container per plug-in OK?

I am trying to introduce DI (with Autofac) into an existing Windows Forms application. This application has a basic plug-in architecture where each plugin displays its own form. On startup, the application scans registered assemblies for types that implement IPlugin, and then activates these using Activator.CreateInstance: public inter...

Validating/ed events not firing in class library windows form

I'm developing a Word 2010 add in using Visual Studio 2010, and C#. I've created a simple form, with two textboxes, and an Ok button. The Ok button's Causes validation property is set to true. Both textboxes CausesValidation property is set to false, and their Validating and Validated properties are set. This is so that they are only v...

Using 32bit COM addin under MS Office 64 bit

Hi, I am struggling to apply an existing 32bit COM addin to 64bit Microsoft Word 2010. To make the addin visible to Word, I have used the dllsurrogate-method, as it described here. The problem is that now addin caused some strange exception when tries to add its toolbar and menu to office's. I cannot figure out, what it is, it seems, ...

Trapping powerpoint 2010 events while doing presentation

Is there a way I can trap event when a presenter switches to a slide on MS power point 2010 ...

Overlay graphics (aka adornments in VS2010) in VS2008

Hi everyone, I'm writing an add-in for both VS2008 and VS2010 and I'd like to have graphical enhancements that appear on top of the code (similar to Resharper/CodeRush). Doing so in VS2010 is relatively easy using adornments, however, how do I do it in VS2008? Anyone knows a good resource/article for something in that spirit? I know th...

OO Calc Add-in: Accessing dynamically determined cell ranges on Calc spreadsheet

Hey, i have succeeded in adding a function to Calc and reading the input figures on a Calc spreadsheet. I'm using the .impl.java file generated (on Netbeans IDE) and changing its return statement so as to give the result of my function. But I can only access a pre-defined number of cells only. i.e. the size of the array i define in the...

Get path of a Solution Item file in Visual Studio Add-In

I'm iterating through a solution and its projects and items and need to retrieve the path to the items on disk. I can retrieve the project file name from Project.FullName and can get a project items path using ProjectItem.Properites.Item("FullPath"). However, for an item in the solutions 'Solution Items' folder, the items Properties m...

Outlook Add-in: MailItem.Body is null for a newly received email until email is opened

Hi, I'm creating an addin for microsoft outlook. When I receive the Application.NewMailEx event, I try to read email's Body property. The problem I'm having is that until the user clicks on the email to read it, the Body property is null and the HTMLBody property of the MailItem is: <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\"> <...

IE Protected Mode Problem?!

Hi all, 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'...

Include Word Application level Addin functionality to the right click menu of Windows on word documents

On a windows machine if you select any word document (.doc|.docx) and right click your mouse you get a menu with common commands such as Open, Edit, New, Print etc ... I have developed a Application level word 2007 AddIn which installs correctly on Windows machines. It has a ribbon with many functionality/commands such as A,B,C etc inco...

Adding a Menu to the Visual Studio Menu Bar within an Add-In

Is it possible to create an add a custom menu to the main menu bar in Visual Studio within an Add-In? I want the Add-In to create a company specific menu if it does not already exist and then add its own specific command to that menu. That way if multiple Add-Ins are supplied then they can all add the commands to the same menu. I have ...

Can I create a Visual Studio 2010 Add-In that Uses a WPF Display?

We're working on creating a specialized graphical editor for our enterprise applications. We've looked at and rejected DSLs. Ideally I'd like to have the main interface of the editor be docked like the code windows and use WPF for drawing. Can anyone point me to some documentation to get me on the right path? Thanks. Colin. UPDATE: It...

Inactive word addin - reenable

Hello, my problem is blocked VSTO word 2007 addin. Once the addin breaks down, in non-debug mode, its unable to reenable it from word (set its status from inactive to active). The only way to do this is to recompile the plugin. I tried with LoadBehaviour=3 (word sets this value immediately into 0, after its run). There ae no Resiliency e...

Make Visual Studio add-in form always on top

I'm developing an add-in for Visual Studio 2010, the add-in consists of a form with some controls. I want my form to stay on top of the calling VS instance, but not the top of all the running applications. The form should not be modal, the ideal solution would be that the form would stay visible when the calling VS is the active window, ...

Creating addin for studio 2008

Hi all, I'm trying to create a simple c# addin for visual studio. I've been following the guidelines dotted around the net, and it says to put my main code in a routine called 'Exec'. However, I cannot find this routine anywhere. I'm assuming there should be a stub for this. All I have is a connect.cs, with Onconnection, OnDisconnectio...

LoadBehavior for MS Word 2007 add-in being set to 2

I have an add-in for MS Word. One of my users, who is on Word 2007, reports that the add-in is not being loaded. When she checks the COM add-ins list, it says "Load Behavior" is "Unloaded; Load at Startup" (value of 2 in LoadBehavior registry entry). Yet when she checks the add-in's registry entry, LoadBehavior is set to 3 (Loaded; Load...

Looking for a tool to change the reference to Project Reference

Is there a tool that can do this: when we add projects to our solution, it should be able to the references to "project references" , so we do not need to do it with hand. ...

How to hook up chm help file to custom Ribbon buttons in Excel Add-In (RibbonX)

VS2008, Excel 2007, RibbonX, Excel Shared Add-In, Not VSTO There is no property in RibbonXML that I can set help to a ribbon button I can't get hold of reference to any particular ribbon button, I only can get a reference to IRibbonUI in RibbonLoaded call back Anyone know how to accomplish this? thanks ...