c# - VSTO not working for Outlook 2013 -
I have a VSTO for Outlook 2007. It also works on Outlook 2010. Now I have upgraded my office from 2010 to 2013. My VSTO works here too. But the problem is that I have written the code to add ContextMenuItem to the right click menu. To implement this I have implemented the application.AttachmentContextMenuDisplay method. Here is my code snippet:
Private sub application_attentContaxMy Display (ByVal CommandBar as Microsoft.office.core.commandbar, by attachments as Microsoft Office.Instop.UftCl.Attachment Selection) Handles the app. Attachment Context MenuDisplayem Dm DVCmdBarPopup Office.CommandBarPopup DVCmdBarPopup = CommandBar.Controls.Add _ (Office.MsoControlType.msoControlPopup ,,, 3, True) DVCmdBarPopup .Caption = "Menu" with .BeginGroup = True .Visible = True .Tag = "Hello world." Like .tooltiptext = "hello world." End code
This code works fine for Outlook 2007 as 2010 but when I try to create my VSTO when I have Office 2013 installed and it shows me an error like this .
ending with" Project currently has more than one version of the Office, version (through 'Microsoft.Office.Interop.Outlook._Explorer.CommandBars') version 14.0.0.0 For a direct reference and an indirect reference, reference is 15.0.0.0. "I do not know what happens, please reply that if you have any ideas or encounter this problem before. Thank you.
CommandBar.Controls.Add (Office.MsoControlType.msoControlPopup ,,, 3, is true) Outlook 2013 is not supported for I'm also trying to port in Outlook 2013, but it fails. "". If you are able to find out something from your end, please tell me.
Comments
Post a Comment