index > Visual Studio Tools for Office > Outlook 2007 Ribbon Observations/Questions

Outlook 2007 Ribbon Observations/Questions


i have developed a custom ribbon for a custom message class: "IPM.Contacts.MyCustomClass"

i note that inside the GetCustomUI() method I can;t seem to trap whether the ID relates to a custom message class or note, as they both come out as "Microsoft.Outlook.Contact". So I am assigning my custom ribbon to both the standard outlook form and mythingie form at this point. Am I doing this bit right???

case "Microsoft.Outlook.Contact":

return Properties.Resources.MyCustomClassRibbon;

so next i am hiding/showing my tabs on my custom ribbon depending upon whether the messageclass is custom or not which i am ascertaining using GetVisible callback methods. but i dont think this is right because i am dictating what is on the ribbon for the standard contact form here, which i should not be doing, in case changes are made to it in the future. so where am i going wrong???

i include my ribbon code below. thanks for any help.

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">

<ribbon startFromScratch="false">

<tabs>

<tab idMso="TabContact" getVisible="Client_IsStandardRibbon" />

<tab idMso="TabInsert" getVisible="Client_IsStandardRibbon" />

<tab idMso="TabOutlookWrite" getVisible="Client_IsStandardRibbon" />

<tab idMso="TabDeveloperTools" getVisible="Client_IsStandardRibbon" />

<tab idMso="TabAddins" getVisible="Client_IsStandardRibbon" />

<tab id="TabClient" label="Client" insertBeforeMso="TabContact" getVisible="Client_IsCustomRibbon">

<group id="Client_GroupActions" label="Actions">

<button idMso="SaveAndClose" />

<button idMso="SaveAndNew" />

<button idMso="Delete" />

</group>

<group id="Client_GroupShow" label="Show">

<toggleButton id="Client_ShowPageGeneral" label="General" onAction="Client_ShowPageGeneral" />

<toggleButton id="Client_ShowPageUdf" label="User Defined Fields" onAction="Client_ShowPageUdf" />

<toggleButton id="Client_ShowPageMatters" label="Matters" onAction="Client_ShowPageMatters" />

</group>

<group id="Client_GroupOptions" label="Options">

<button id="Client_ShowFormUdf" label="Manage User Defined Fields" onAction="Client_ShowFormUdf"/>

</group>

</tab>

</tabs>

</ribbon>

</customUI>

Wee Bubba

Bubba,

You are basically doing the right thing here.

Ryan Gregg

Ryan,

I added a tab and want to display onlu that tab. My xml is:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad">

dragank
reply 3

You can use google to search for other answers

 

More Articles

Problem with TaskPane initialization - possible race condition?
Working on Offfice 12 Beta 1 with VSTO
Interop.Office
Protected sheet gives exception with Databound Listobject
Does VSTO offer similar functionality to outlook's edit message w...
A very technical (I think) VSTO startup question
problem with deploying VSTO applications
VSTO 'V3' Outlook Add-In Questions
VSTO 2005 Command Bar opening WinForm problem
Using a template on a template
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

IIS
Can we use outlook object with Exchange
Outlook 2003 navigation bar
Again: Error HRESULT E_FAIL has been ret…
Why VSTO?
VSTO 2005 SE Outlook Form Regions, CTP a…
Access Denied starting MS Outlook from W…
A very technical (I think) VSTO startup …
Excel ExportXml from background thread
User Settings
VSTO Excel deployment problem
.net COM Add-in for Excel - cannot find …
Smart Docs in SharePoint
Assembly not being loaded with MS-Word
Error while locking columns & cells

Hot Articles

Excel 2003 dll
How to Configure OfficeVSTOBenefitsRegis…
NewSheet event not always raised
Office Communicator 2005 & VB.NET 2005
Creating tab delimited text files form e…
vbScript with .NET
Assembly not being loaded with MS-Word
[Outlook 2007] Create automatic formatti…
Unable to uninstall
Add Worksheet From template
C++ AddIns 4 MS-Word
Copy Excel range
Dynamic Word Doc based on Params passed.
.NET controls or WPF inside outlook form…
ActionsPane does not show up...please he…

Recommend Articles

Word COM addin stops when application.Se…
Shared Add-in - Excel Add-in for Office …
Outlook add-in: setup package & depl…
Inspector CommandBars
Manual Page breaks vs automatic page bre…
VSTO - VS2005 Excel Addins issue
Globals.ThisWorkbook disappear?
Running MySql from Form in Outlook 2003 …
VSTO 2005 questions...
Problem Running VSTO on webserver - VSTO…
CircleInvalid and clearcirles
Expansion Pack can not find Smart Doc Pr…
Excel invoke commands
How to Read email data(ms outlook)?
performances problem