如何解决消息过滤器指示应用程序正忙. (来自HRESULT的异常:0x8001010A(RPC_E_SERVERCALL_RETRYLATER)) [英] how to resolve The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))

查看:1070
本文介绍了如何解决消息过滤器指示应用程序正忙. (来自HRESULT的异常:0x8001010A(RPC_E_SERVERCALL_RETRYLATER))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PowerPoint.Application PowerPoint_App;
PowerPoint_App = new PowerPoint.ApplicationClass();
PowerPoint_App.DisplayAlerts = PowerPoint.PpAlertLevel.ppAlertsNone;
PowerPoint.Presentation presentation;
presentation = null;
try
{
    PowerPoint_App.Visible = MsoTriState.msoTrue;
    presentation = PowerPoint_App.Presentations.Open(strPptFilePath, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
    PowerPoint.Slide tempSlide = null;
    int totalSlides = presentation.Slides.Count;
    int slideNo = 0;

我在PowerPoint_App.Presentations.Open代码上遇到以下异常.

I am getting the below exception on PowerPoint_App.Presentations.Open code.

异常消息:消息过滤器指示应用程序正忙. (来自HRESULT的异常:0x8001010A(RPC_E_SERVERCALL_RETRYLATER))

Exception Message: The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))

我之前在此代码块上未收到此错误.之前一切都很好.有人可以帮忙吗?

I did not received this error previously on this block of code. Everything was working perfectly before. Can anyone help?

推荐答案

我最终删除了:

 PowerPoint_App.Visible = MsoTriState.msoTrue;

它奏效了... !!!

And it worked...!!!

这篇关于如何解决消息过滤器指示应用程序正忙. (来自HRESULT的异常:0x8001010A(RPC_E_SERVERCALL_RETRYLATER))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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