View Single Post
  #3  
Old July 26th 07, 08:46 PM posted to microsoft.public.outlook.program_addins
John Svercek
external usenet poster
 
Posts: 3
Default Compile Addin for OL 2000 thru 2007

Ken, thanks one more time. That tlb did the trick.
--
John Svercek


"Ken Slovak - [MVP - Outlook]" wrote:

Are you talking about XL-Dennis's ribbon tlb? That will work when used with
an Office/Outlook 2000 set of references and the resulting addin will
support all those versions and have the ribbon in Outlook 2007.

I've used that tlb not only in VB6 code but also in managed code. It has a
reference to IRibbonUI that I use all the time. Just don't reference it as
Office.IRibbonUI, just declare it as IRibbonUI. Since the Office 2000 olb
doesn't have any IRibbonUI definition and the xlribbon.tbl does that's the
only reference you have to IRibbonUI and it resolves nicely using early
binding.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"John Svercek" wrote in message
...
I have an addin for Outlook that works in 2000 thru 2003. It also works in
2007 with a few changes. However, the 2007 version puts the buttons in the
Add-Ins tab. I have made changes to customize the Ribbon with my own tab &
everything works if I compile in 2007. However, since OL 2000 does not
contain the Ribbon definition, the addin will not compile there. I found a
partial solution by using a tlb that defines the IRibbonControl &
IRibbonExtensibility. By referencing this tlb, I can get the addin to
compile
in 2000 and run in all versions.

The problem is I cannot include a definition for IRibbonUI in my code (it
is
not defined in the tlb). Without this I cannot reload the Ribbon if
something
changes. I tried late binding IRibbonUI, which works from a compile
standpoint, but according to other posts in Office Developer, late binding
is
not supported.

Does anyone have another solution

The above mentioned tlb can be found at

http://www.xtremevbtalk.com/showthre...+200 7+ribbon

--
John Svercek



Ads