A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Unable to load Image in Outlook 2007 Ribbon Control



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 25th 09, 04:23 PM posted to microsoft.public.outlook.program_addins
KarthikonIT
external usenet poster
 
Posts: 2
Default Unable to load Image in Outlook 2007 Ribbon Control

Hi,
I m creating a plugin in MS Outlook.
I have implemented the "_IDTExtensibility2" & "IRibbonExtensibility"


I have added button to MS Outlook Ribbon control, but the Image that i m
trying to load is not
Visible. MS OUtlook is not calling the call back function "GetItemIcon".

But it is calling the ButtonClicked event when the Button is clicked.



This is the XML returned to Outlook when the plugin is loaded.


STDMETHOD(GetCustomUI)(BSTR RibbonID, BSTR * RibbonXml)
{
if (!RibbonXml)
return E_POINTER;




);


*RibbonXml = SysAllocString(
L"customUI xmlns=\"
http://schemas.microsoft.com/office/2006/01/customui\""
L" onLoad=\"GetRibbonXControl\""
L" loadImage=\"GetItemIcon\""
L" ribbon"
L" tabs"
L" tab idMso=\"TabReadMessage\""
L" label=\"Custom Tab\""
L" group id=\"Test\""
L" label=\"Custom Group\""
L" button id=\"CustomButton1\""
L" image=\"AGIcon.bmp\""
L" size=\"large\""
L" label=\"Sample Button!\""
L" visible=\"true\""
L" onAction=\"ButtonClicked\"/"
L" /group"
L" /tab"
L" /tabs"
L" /ribbon"
L"/customUI"
);

return (*RibbonXml ? S_OK : E_OUTOFMEMORY);

}


STDMETHOD(GetItemIcon)(IDispatch * RibbonControl)
{

::MessageBox(NULL,"Load Img","Sample",MB_OK);
return S_OK;
}



Any clues?

Thanks.

--
Message posted via http://www.officekb.com

Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.ActiveInspector() is Null on Ribbon Load Deepak N Add-ins for Outlook 1 May 28th 09 03:19 PM
Invalidate control in Ribbon goran Add-ins for Outlook 4 April 8th 08 06:07 PM
Unable to display Custom Icons On outlook 2007 ribbon using VB 6.0 Ashok Add-ins for Outlook 7 February 15th 08 06:04 PM
Make Ribbon image transparent Christian Havel Outlook and VBA 1 July 5th 07 03:56 PM
Outlook 2007 Ribbon access from ActiveX control GR Add-ins for Outlook 4 May 29th 07 06:24 PM


All times are GMT +1. The time now is 01:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.