如何通过VB代码禁用Office 2010应用程序中的新屏幕捕获功能? [英] How to disable the the new screen capture function in Office 2010 applications through the VB code?

查看:110
本文介绍了如何通过VB代码禁用Office 2010应用程序中的新屏幕捕获功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的产品有一个使用VB 6开发的ActiveX控件,它从机器上加载已安装的Office 2010应用程序。作为Office 2010中新功能的一部分,Microsoft已将屏幕捕获实用程序作为工具栏
按钮之一提供。我们所需要的只是找到一种方法来禁用此按钮,以便在ActiveX占用应用程序之前,最终用户不应该使用此功能,一旦我们退出应用程序,我们就希望将其启用。


$
请帮助建议任何解决方案,因为我们现在正在拼命寻找合适的解决方案。


$
非常感谢提前。

Our product has an ActiveX Control developed used VB 6,  which loads the installed Office 2010 application from the machine. As part of new feature in Office 2010 Microsoft has provided the screen capture utility as one of the toolbar buttons. All we need is find a way to disable this button so that until the ActiveX is loding the application this feature should not be available to the end user and once we exit from the application we would like to enable it back.

Kindly help suggesting any solutions to do this as we are desperately looking for a suitable solution for some time now.

Many thanks in advance.

推荐答案

Hello DommelM,

Hello DommelM,

感谢发布。你的意思是插入标签上的插图的屏幕截图控件?如果是,要禁用它,我们可以使用< command> Ribbon xml中的元素,并将Enable设置为False。要启用它,请使用Ribbon.Invalidate或Ribbon.InvalidateControl
方法。有关详细信息,请参阅此主题中的Cindy和Manvir的回复:

http://social.msdn.microsoft.com/Forums/en/vsto/thread/4cc63395-3ac8-47bc-83ce-d41ee4214952

Thanks for posting. Do you mean the Screenshot control of Illustration on Insert tab? If yes, to disable it, we could use <command> element in Ribbon xml, and set the Enable to False. To enable it back, please use Ribbon.Invalidate or Ribbon.InvalidateControl method. For more information, please see Cindy and Manvir's replies in this thread: http://social.msdn.microsoft.com/Forums/en/vsto/thread/4cc63395-3ac8-47bc-83ce-d41ee4214952.

如果您对此帖有任何疑虑,请随时跟进。祝你有愉快的一天。

If you have any concern on this post, just feel free to follow up. Have a nice day.


这篇关于如何通过VB代码禁用Office 2010应用程序中的新屏幕捕获功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆