C
cwang
Hello,
I am writing a program to convert a bunch of ppt files into JPEG files. Here
is the description of my program:
try {
Application pptApp = new Application();
foreach (pptFile in pptFiles) {
Presentation pres = pptApp.Presentations.Open(pptFile,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse);
pres.SaveAs(folder, PpSaveAsFileType.ppSaveAsJPG,
Microsoft.Office.Core.MsoTriState.msoTrue);
pres.Close();
} catch (Exception e) {
System.Console.WriteLine(e.Message);
}
pptApp.Quit();
After running a while, I got the error message as: The message filter
indicated that the application is busy. (Exception from HRESULT: 0x8001010A
(RPC_E_SERVERCALL_RETRYLATER)).
My qyestions are:
1. What does this mean?
2. How to solve the problem?
3. How to check if the Powerpnt application is running and get it before I
call "new Applicaion"?
Thanks a lot!
I am writing a program to convert a bunch of ppt files into JPEG files. Here
is the description of my program:
try {
Application pptApp = new Application();
foreach (pptFile in pptFiles) {
Presentation pres = pptApp.Presentations.Open(pptFile,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse);
pres.SaveAs(folder, PpSaveAsFileType.ppSaveAsJPG,
Microsoft.Office.Core.MsoTriState.msoTrue);
pres.Close();
} catch (Exception e) {
System.Console.WriteLine(e.Message);
}
pptApp.Quit();
After running a while, I got the error message as: The message filter
indicated that the application is busy. (Exception from HRESULT: 0x8001010A
(RPC_E_SERVERCALL_RETRYLATER)).
My qyestions are:
1. What does this mean?
2. How to solve the problem?
3. How to check if the Powerpnt application is running and get it before I
call "new Applicaion"?
Thanks a lot!