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;
Ich bekomme die folgende Ausnahme auf PowerPoint_App.Presentations.Open
Code.Wie wird aufgelöst? Der Nachrichtenfilter zeigt an, dass die Anwendung beschäftigt ist. (Ausnahme von HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Ausnahmemeldung: Der Nachrichtenfilter zeigte an, dass die Anwendung beschäftigt ist. (Ausnahme von HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Ich habe diesen Fehler zuvor in diesem Codeblock nicht erhalten. Alles hat perfekt vorher funktioniert. Kann jemand helfen?
Dieser Thread hat einige wertvolle Informationen [link] (https://social.msdn.microsoft.com/Forums/vstudio/en-US/70ef972b-51b6-4ece-a4af-d6b4e111eea5/msword-automation-error-the -message-filter-indicated-that-the-application-is-busy? Referrer = http: //social.msdn.microsoft.com/Forums/vstudio/en-US/70ef972b-51b6-4ece-a4af-d6b4e111eea5/msword -automation-error-the-message-filter-indicated-die-Anwendung-is-busy? forum = vsto). Ich hatte ein ähnliches Problem und das Hinzufügen eines Schlafes half. –