Call was rejected by callee PowerPoint Automation

后端 未结 1 1395
一生所求
一生所求 2021-01-03 07:06

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

相关标签:
1条回答
  • 2021-01-03 07:52

    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.

    0 讨论(0)
提交回复
热议问题