Claus Christensen
Posts: 8
Joined: 2011-02-13
|
Hi,
we need to change the signature of an email from within the add-in. In Outlook version 2007 and 2010 we did this by going through the CommandBarControls and then calling CommandBarButton.Execute when we found the command button for the signature we wanted.
But unfortunately CommandBarControls are no longer available in Outlook 2013. Do you know a way to do this in the new Outlook version?
We're using Add-in Express for .NET with c# code.
Thanks,
Claus |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Claus,
This is impossible in Outlook 2013. The reason: in Outlook 2007-2013 these are Ribbon items, not Ribbon controls. The workaround that you used in Outlook 2007-2010, you cannot use in Outlook 2013 because they removed command bars in this Outlook version.
So, I suppose the only way is to use find signature files and insert the signature "manually". These files are .htm, .rtf, and .txt files in your Windows user profile Signatures folder, see http://www.slipstick.com/config/backup.htm.
Ypu may find this thread useful:
http://www.outlookcode.com/codedetail.aspx?id=2050
Andrei Smolin
Add-in Express Team Leader |
|
Claus Christensen
Posts: 8
Joined: 2011-02-13
|
Thanks Andrej,
that was a lot of work but it works. One more question: I'd like to react to a keyboard shortcut inside a ADXOlForm that I use in Outlook compose new email forms. I know how to add a ADXKeyboardShortcut with an event in my main add-in code but how do I make the connection to the currently open inspector window with my special form? The keyboard shortcut needs to trigger an event inside that form, not inside the general add-in.
Thanks,
Claus |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Claus,
You need to use ADXOlFormsCollectionItem.GetForm().
Andrei Smolin
Add-in Express Team Leader |
|
Claus Christensen
Posts: 8
Joined: 2011-02-13
|
Hello Andrei,
thanks again for the pointer in the right direction. That did it! Both problems solved - thank you very much!
Claus |
|