Outlook AddIn (NetOffice) - Context Menu -


i'm using netoffice developing ms outlook addin, , want add custom context menu item in calendar, allow users add new custom appointment selected time range.

so written in article define additional item in ribbonui.xml following way:

<customui xmlns="http://schemas.microsoft.com/office/2006/01/customui" onload="onloadribonui">   <ribbon>     <tabs>       <tab idmso="tabappointment">         <group id="group0" label="addin" insertbeforemso="groupshow">           <button id="convertbutton" label="convert" getimage="convertimage" size="large" onaction="convertbutton_click" />         </group>       </tab>       <tab idmso="tabcalendar">         <group id="group1" label="addin" insertbeforemso="groupgoto">           <button id="aboutbutton" label="new custom meeting" getimage="getnewimage" size="large" onaction="newmeetingbutton_click" />           <dialogboxlauncher>             <button id="settingsbutton" screentip="addin settings" onaction="settingsbutton_click"/>           </dialogboxlauncher>         </group>       </tab>     </tabs>   </ribbon>   <contextmenus>           <contextmenu idmso="contextmenucalendarview">           <button id="mycontextmenucalendarview"                label="contextmenucalendarview"                onaction="onmybuttonclick"/>       </contextmenu>     </contextmenus> </customui> 

but add <contextmenus> node, xml isn't working anymore, not add in doesn't add context menu, doesn't add buttons anymore - whereas buttons added when <contextmenus> node not defined. tips how debug issue?

edit:

thanks tip dmitry found issue xmlns namespace old one, instead of:

xmlns="http://schemas.microsoft.com/office/2006/01/customui"  

it should be:

xmlns="http://schemas.microsoft.com/office/2009/07/customui" 

i can't see wrong off top of head, enable dev mode in outlook - way outlook report problems in xml. click file | options | advanced | developers | show add-in user interface errors.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -