Add button on build-in ribbon

Add-in Express™ Support Service
That's what is more important than anything else

Add button on build-in ribbon
Add button on build-in ribbon 
jurgenwesterhof




Posts: 4
Joined: 2015-12-03
Hi,

I recently managed to create a (custom) button to a (custom) tab to a (custom) ribbon in the compose window for a mail in outlook. Now I get the question to place that button on the left of the 'paste' button in the compose window (see image, to the left of 'paste'). Is this possible with the InsertBeforeIdMso and, if so, how can I?

User added an image

Cheers
Posted 15 Feb, 2016 06:12:18 Top
Andrei Smolin


Add-in Express team


Posts: 16986
Joined: 2006-05-11
Hello Jurgen,

You cannot modify the built-in Ribbon containers (such as a Ribbon group). Instead, you can create a custom group and set its InsertBeforeIdMso property to "GroupClipboard".

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Feb, 2016 09:05:03 Top
jurgenwesterhof




Posts: 4
Joined: 2015-12-03
Hi Andrei,

Thanks for your reply. Your suggestions seems not to work for me. I hope you can explain why.

A create a Ribbon A, have a group B in it and within that group a button C.

Now, I tried to set any InsertBeforeIdMso property to "GroupClipboard" of A, B and C (I expected B would be the one first), but none of them seem to have the desired result. The three still appear as a rightmost tab/ribbon in the compose new mail window.

Regards from the Netherlands
Posted 15 Feb, 2016 09:18:12 Top
Andrei Smolin


Add-in Express team


Posts: 16986
Joined: 2006-05-11
Jurgen,

The tab component should have IdMso="TabNewMailMessage"; the group component should have InsertBeforeIdMso="GroupClipboard".

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Feb, 2016 10:04:58 Top
jurgenwesterhof




Posts: 4
Joined: 2015-12-03
Hi Andrei,

I guess that did the trick (the IdMso on the tab).

Also when running the project it seems it kept being registered to the 'old' code, so none of any changes hit. Un- and re-registering seemed needed this time as well.

Thanks for the help!
Posted 15 Feb, 2016 10:24:25 Top
Andrei Smolin


Add-in Express team


Posts: 16986
Joined: 2006-05-11
Welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Feb, 2016 08:19:57 Top