Hello,
I am trying to add buttons to the RibbonX in Outlook 2007 using VB 6.0.
I have added buttons to the RibbonX control successfully in an Add-in.
I have put in Callback functions in the Addin to display just a message
box.
I have loaded the XML in "IRibbonExtensibility_GetCustomUI(ByVal
RibbonID As String) As String" function that is in the Connect class.
The Button gets displayed on the Ribbon.
I have a few questions about things I dont understand from the sample
VB .NET code:
1. Currently I have callback functions in the connect class that
displays the message box. How would I be able to put the Click event
handler into the Inspector Wrap class that I have?
I will need to create buttons in code to include the Click event
handler. How do I relate the Callbacks in the Connect class with the
click event handler in the Inspector wrap?
2. If I generate buttons using code, they will be added to the Add-ins
tab, as indicated by the documentation. How do I add buttons using code
onto the first Tab of the Inspector? Is this possible without loading
the XML?
3. Will I be able to this:
Create the CommandBar by loading the XML. Then get a reference to the
CommandBar using Code and Add buttons to this reference object that I
get. This way I will be able to get Click event handlers using Code.
Is this going to work?
I would really appreciate the help and guidance. I am not too familiar
with VB .NET and that is making it a bit difficult to understand all
the samples.
Regards,
Neil Goundar.
Ken Slovak - said:
The only way to have one addin that supports 2000 - 2007 would be either
to not support the ribbon or to code the addin in C++. VB, VB.NET and C#
can't do it.
Patrick Schmid said:
The key question is: Do you need one add-in that supports 2000-2007, or
can you split it into two: one for 2000-2003 and one for 2007?
Have you looked at the RibbonX stuff and understand how do it with
VB.NET?
Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 Beta 2 Technical Refresh (B2TR):
http://pschmid.net/blog/2006/09/18/43
***
Customize Office 2007:
http://pschmid.net/office2007/customize
OneNote 2007:
http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog:
http://pschmid.net/blog/feed