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
代码中遇到以下异常。
Exception Message: The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
我之前没有在这个代码块上收到这个错误。之前一切都运行良好。谁能帮忙?
最佳答案
我最终删除了:
PowerPoint_App.Visible = MsoTriState.msoTrue;
它奏效了...!!!
关于c# - 如何解决消息过滤器指示应用程序正忙。 (来自 HRESULT : 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)) 的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21988095/