VSTO Outlook: Get selected attachment
问题 I'm trying to do an action on a selected attachment in outlook 2010. I created an Outlook VSTO project in VS2012. This is the XML for adding a button on the attachment ribbon: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <ribbon> <contextualTabs> <tabSet idMso="TabSetAttachments"> <tab idMso="TabAttachments"> <group label="MyGroup" id="MyAttachmentGroup"> <button id="AttachButton" size="large" label="Do