gpt4 book ai didi

c# - 如何解决消息过滤器指示应用程序正忙。 (来自 HRESULT : 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)) 的异常

转载 作者:太空狗 更新时间:2023-10-29 20:27:35 57 4
gpt4 key购买 nike

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/

57 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com