Hi =?Utf-8?B?S29lbiBWZXJ3aW1w?=,
How can i add a menuitem in the office menu (new, open, save, save as, print
, .. behind the office button in the upper left) using VSTO?
You should probably ask your questions in the VSTO forum
http://forums.microsoft.com/msdn/showforum.aspx?
forumid=16&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=0
When you ask, you need to specify which version of VSTO you're working with,
and whether this is a document-level or application-level customization (Word
document or Add-in).
In a general sort of way, you'll probably need to use RibbonXML, not the Ribbon
Designer (if this is VSTO 2008). And in the RibbonXML you'll need to work with
the officeMenu element, which is a child of the ribbon element. So, roughly,
the basic RibbonXML code structure would be:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="
http://schemas.microsoft.com/office/2006/01/customui"
onLoad="Ribbon_Load">
<ribbon>
<officeMenu>
<button id="myButton" label="Click here" onAction="DoIt" />
</officeMenu>
<tabs>
<tab idMso="TabAddIns">
<group id="MyGroup" label="My Group">
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail