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
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 toMicrosoft Development Environment 8.0.
This adds references toEnvDTE
andEnvDTE80
to your solution.
3. In the code, create an instance ofEnvDTE80
, as outlined in the following example.
4. CallMessage.Register
to handle thread errors.
5. Call your automation code as usual.
6. When your automation code is finished, callMessage.Revoke
to remove the thread error handlers.