How to add a custom item to the Send to Microsoft Office menu

Is it possible to extend the Send To menu in Office (not Windows, I know how). I would like to run my own application with the original document as the target.

Update: I'm looking for a non-VSTO based solution.

0


source to share


1 answer


In 2007, you can expand the ribbon and be able to place your control in a group FileSendMenu

in the Office menu. I don't think this is supported in the designer available in the latest VSTO-addin for Visual Studio, so you might have to process your xml.

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad" loadImage="OnGetImage">
  <ribbon>
    <officeMenu>
      <menu idMso="FileSendMenu">
        <button id="oButtonId"
              insertAfterMso="FileInternetFax"
              getDescription="GetDescription"
              getLabel="GetLabel"
              getScreentip="GetSuperTip"
              getSupertip="GetSuperTip"
              getVisible="GetVisible"
              onAction="OnButtonPress"/>
      </menu>
    </officeMenu>
  </ribbon>
</customUI>

      



You will need an event handler ("OnButtonPress") as well as handlers for the description, iconst, etc. You can do it with VBA, but I'd rather go with a proper add-in.

0


source







All Articles