S
Scev
I'm looking for a way to add in a group to both the New Message and Reading a
message ribbon. Using the Ribbon XML (in VS 2008 / C#) that task was very
easy, I added this xml:
<tabs>
<tab idMso="TabNewMailMessage">
<group id="group1" label="MEDAC">
<button id="button1" onAction="button2_Click"
label="Search Cases" showImage="false" />
<editBox id="editBox1" label="Case No.:"
showImage="false" />
</group>
</tab>
<tab idMso="TabReadMessage">
<group id="rgroup1" label="MEDAC">
<button id="rbutton1" onAction="button2_Click" label="Search
Cases" showImage="false" />
<editBox id="reditBox1" label="Case No.:" showImage="false" />
</group>
</tab>
</tabs>
The problem is my onAction="button2_Click" does not seem to fire. I'm not
sure if I have the correct event handler signature and have not been able to
find any info online, I've tried a number of function signature, like this:
public void button2_Click(object sender, RibbonControlEventArgs e)
but have yet to get anything to fire. Any help??
Second question is how can I add a menu item under the FileSaveAsMenu
command? I've seen it done, I would like a way for my Outlook user to click
Save As then see my options to save the email and/or attachments to a special
repository. How do I modify the XML (I assume via the <commands> node) to
support a custom Save As menu item??
message ribbon. Using the Ribbon XML (in VS 2008 / C#) that task was very
easy, I added this xml:
<tabs>
<tab idMso="TabNewMailMessage">
<group id="group1" label="MEDAC">
<button id="button1" onAction="button2_Click"
label="Search Cases" showImage="false" />
<editBox id="editBox1" label="Case No.:"
showImage="false" />
</group>
</tab>
<tab idMso="TabReadMessage">
<group id="rgroup1" label="MEDAC">
<button id="rbutton1" onAction="button2_Click" label="Search
Cases" showImage="false" />
<editBox id="reditBox1" label="Case No.:" showImage="false" />
</group>
</tab>
</tabs>
The problem is my onAction="button2_Click" does not seem to fire. I'm not
sure if I have the correct event handler signature and have not been able to
find any info online, I've tried a number of function signature, like this:
public void button2_Click(object sender, RibbonControlEventArgs e)
but have yet to get anything to fire. Any help??
Second question is how can I add a menu item under the FileSaveAsMenu
command? I've seen it done, I would like a way for my Outlook user to click
Save As then see my options to save the email and/or attachments to a special
repository. How do I modify the XML (I assume via the <commands> node) to
support a custom Save As menu item??