呼叫被被叫方拒绝 PowerPoint Automation

发布于 2024-08-23 14:45:39 字数 237 浏览 5 评论 0原文

我有一个命令栏模型,可以自动执行 PowerPoint。我最近遇到一个奇怪的问题,当通过我的应用程序打开 PowerPoint 时,数据正在通过我的应用程序加载以填充菜单。如果用户右键单击 PowerPoint,我会收到错误消息:

呼叫被被叫方 powerpoint 拒绝

我该如何解决此问题?我使用 Office 2003/2007 和 VB.NET 实现办公自动化。

I have a commandbar model which automates PowerPoint. I recently faced a strange problem that when PowerPoint is opened through my application, and the data is being loaded through my application to populate the menu. If a user right clicks on PowerPoint I get the error message:

Call was rejected by callee powerpoint

How do I resolve this? I'm using Office 2003/2007 and VB.NET for office automation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那伤。 2024-08-30 14:45:39

你看过这个教程吗?:
如何:修复“应用程序正忙”和“呼叫被被呼叫者拒绝”错误< /a>

修复错误:
1. 将以下类添加到您的应用程序中。
2. 添加对 Microsoft Development Environment 8.0 的 COM 引用。这会将对 EnvDTEEnvDTE80 的引用添加到您的解决方案中。
3. 在代码中,创建 EnvDTE80 的实例,如以下示例所示。
4. 调用Message.Register处理线程错误。
5. 像往常一样调用您的自动化代码。
6. 自动化代码完成后,调用 Message.Revoke 删除线程错误处理程序。

Did you see this tutorial?:
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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文