加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

vb.net – 调用被被调用者PowerPoint自动化拒绝

发布时间:2020-12-17 00:02:33 所属栏目:大数据 来源:网络整理
导读:我有一个自动化PowerPoint的命令栏模型.我最近遇到了一个奇怪的问题,即通过我的应用程序打开PowerPoint,并通过我的应用程序加载数据以填充菜单.如果用户右键单击PowerPoint,我会收到错误消息: Call was rejected by callee powerpoint 我该如何解决这个问题
我有一个自动化PowerPoint的命令栏模型.我最近遇到了一个奇怪的问题,即通过我的应用程序打开PowerPoint,并通过我的应用程序加载数据以填充菜单.如果用户右键单击PowerPoint,我会收到错误消息:

Call was rejected by callee powerpoint

我该如何解决这个问题?我正在使用Office 2003/2007和VB.NET进行办公自动化.

你看过这个教程吗?:
How to: Fix ‘Application is Busy’ and ‘Call was Rejected By Callee’ Errors

To fix errors:
1. Add the following class to your application.
2. Add a COM reference to Microsoft Development Environment 8.0. This adds references to EnvDTE and EnvDTE80 to your solution.
3. In the code,create an instance of EnvDTE80,as outlined in the following example.
4. Call Message.Register to handle thread errors.
5. Call your automation code as usual.
6. When your automation code is finished,call Message.Revoke to remove the thread error handlers.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读