This project has moved. For the latest updates, please go here.

Integrating with the office UI

May 30, 2011 at 7:26 AM

Hi, I just came over this project. Looks really interesting. One question:

If I for instance want to make an Outlook plugin that works with both Outlook 2007 and 2010, AND integrates with the user interface by adding menu items (2007) and ribbon buttons (2010). In what way would NetOffice help me here? Would it? Or would I still have to make deployment projects for the different Outlook versions?

May 30, 2011 at 1:07 PM

Hello Nilzor,

Its not necessary to create different deployment projects, use one .dll assembly but you have to combine a classic ui addin and a ribbon addin functionality of course.
Please look at the folder: Example\Misc\C#\SuperAddin. The sample addin creates also ribbons dynamicly in outlook version 14 and classic menu items in older versions.

In other words, write a normal addin there create ribbons. In OnStartupCompleteEvent check RibbonExtensibility method was called (with a flag maybe) or check !application.Version.StartsWith("14")
then create normal items gui if an older outlook version.

let me know, you have more questions about this.




May 30, 2011 at 1:27 PM

Ok, this sounds really cool. I've lost count on how many hours I've wasted trying to get deployment projects, interop versions, vsto prerequisites, manifest files etc etc correct. If this project does half the things you say it do, I'll be very happy :)

Dec 11, 2014 at 3:08 AM
@SebastianDotNet Thanks for your great idea!