0
votes

How can I programmatically put a reference to the custom ribbon I made so that the custom region I created will appear in that ribbon?

I see this is how you reference an outlook item. But I dont know how if its a customized ribbon.

 private void MapItFactory_FormRegionInitializing(object sender, Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs e)
        {
            Outlook.ContactItem myItem = (Outlook.ContactItem)e.OutlookItem;
1
What particular ribbon interface do you need to reference? What exactly are you trying to do?Dmitry Streblechenko
I am actually new in developing add-ins so my terms aren't that accurate. I want my programmatically created button that opens a map when click to appear in the Tab I made using the user interface of the outlook.EJ Camp

1 Answers

0
votes

Do not use a form region - use a task pane. Since you are the one creating the task pane, you will have a reference to it (associated with a particular inspector). This way your button click event code can access your task pane.