S
sd
hello
I've Outlook addin for office 2007 using VSTO SE.I need to add custom
buton on ribbon for existing mesage as well as for new message.
Currently I'm using below xml file
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnLoad">
<ribbon>
<tabs>
<tab idMso="TabNewMailMessage">
<group id="ClearV"
label="ClearV"<button id="Button1"
size="large"
label="Save And Send"
screentip="ClearV Save And Send"
onAction="OnButton1"
getEnabled="CallBackIsEnable"
imageMso="HappyFace"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
rbnComposeMail.vb -
Public Function GetCustomUI(ByVal ribbonID As String) As String
Implements Office.IRibbonExtensibility.GetCustomUI
If ribbonID = "Microsoft.Outlook.Mail.Compose" Then
Return GetResourceText
("Outlook_Add_In.rbnComposeMail.xml")
'ElseIf ribbonID = "Microsoft.Outlook.Mail.Read" Then
' Return GetResourceText("Outlook_Add_In.rbnReadMail.xml")
End If
End Function
What extra I need to add to have my custom button on ribbon for both
new message & existing message?
I also want to disable/Enable this button when opening message
depending on some condition.I tried with Callback function but this
button gets enabled/disabled only for the first time thereafter it
remains as it is i.e. not enables/disables dynamically.
thanks
I've Outlook addin for office 2007 using VSTO SE.I need to add custom
buton on ribbon for existing mesage as well as for new message.
Currently I'm using below xml file
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnLoad">
<ribbon>
<tabs>
<tab idMso="TabNewMailMessage">
<group id="ClearV"
label="ClearV"<button id="Button1"
size="large"
label="Save And Send"
screentip="ClearV Save And Send"
onAction="OnButton1"
getEnabled="CallBackIsEnable"
imageMso="HappyFace"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
rbnComposeMail.vb -
Public Function GetCustomUI(ByVal ribbonID As String) As String
Implements Office.IRibbonExtensibility.GetCustomUI
If ribbonID = "Microsoft.Outlook.Mail.Compose" Then
Return GetResourceText
("Outlook_Add_In.rbnComposeMail.xml")
'ElseIf ribbonID = "Microsoft.Outlook.Mail.Read" Then
' Return GetResourceText("Outlook_Add_In.rbnReadMail.xml")
End If
End Function
What extra I need to add to have my custom button on ribbon for both
new message & existing message?
I also want to disable/Enable this button when opening message
depending on some condition.I tried with Callback function but this
button gets enabled/disabled only for the first time thereafter it
remains as it is i.e. not enables/disables dynamically.
thanks