是否可以在Office中扩展“发送到”菜单(不是Windows菜单;我知道如何操作)。我想以源文档作为目标启动我自己的应用程序。
更新:我正在寻找一个不基于VSTO的解决方案。
发布于 2008-12-30 19:36:22
在2007年,您可以扩展功能区,并且应该能够将控件放在tab Office菜单中的FileSendMenu组中。我认为在Visual Studio的上一个VSTO-addin中提供的设计器不支持这一点,所以你可能不得不手工制作你的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>你需要一个事件处理程序("OnButtonPress"),还有描述,图标等等的处理程序。你可以用VBA来做这件事,但我宁愿用一个合适的插件。
https://stackoverflow.com/questions/361156
复制相似问题