comaddin

How it is correctly to implement IDTExtensibility2 interface for Office COM Add-In?

I am implementing COM Add-In for Outlook. I use IDTExtensibility2. I am not sure whether this is the best way of doing COM Add-Ins but I cannot change that. This interface defines five methods: OnConnection, OnStartupComplete, OnAddInsUpdate, OnBeginShutdown, OnDisconnection. I need to perform the following operations: Load configur...

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

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 stran...

Export Visio Macros to Visio COM-Add-in

Hi all, I have written some Makros and Functions in VB all code works fine behind my Document. To save my code and make it available to other users I want to create a COM-add-in for VIsio. So i bought Visual Studio 2008 and I want to import my code to it. Is it possible to include my exported .cls file to my Visual Studio COM-Add-on Pr...

Manually trigger Windows Error Reporting from a Outlook COM Add-In

I am writing a Outlook COM Add In using Visual Studio 2008 and VSTO. If an exception goes unhandled in the add in, I would like it to trigger Windows Error Reporting (WER). Our company has access to WinQual so that we can get reports of WER reports from users that occur in our program. Is there some way to do this? From what I can tel...

Visio COM Add-in question.

I was installing an Add-in to Microsoft Visio. The Add-in gets installed on the development PC and target PCs. I didn't do anything related to trusting of the Add-in or the CAS related settings as described in some of the VSTO Add-in pages or common Add-in related pages. I was able to see the Add-in listed in the Trust Center with the ty...

Powerpoint displays a "can't start the application" error when an Excel Chart object is embedded in it

This is a very common problem when Excel Worksheet or Chart is embedded into Word or Powerpoint. I am seeing this problem in both Word and Powerpoint and the reason it seems is the COM addin attached to Excel. The COM addin is written in C# (.NET). See the attached images for error dialogs. I debugged the addin and found a very strange ...

Embedded Office Application - How to know whether the app is running or the object is embedded

I am adding an Excel Worksheet object inside Word. Excel has a COM addin attached to it. Any idea how one can know whether Excel is running independently or as an embedded object? The COM Addin attached to Excel loads when the embedded Excel object is activated (double-clicked) inside Word. I am looking for some kind of a property or a ...