I was designing an application that workd with PowerPoint creating slides. It was working fine for a while, now all of the sudden I am getting "Error HRESULT E_FAIL has been returned from a call to a COM component.". I have tried rebooting the computer and no luck. I have no idea where to start... the code that causes the error now is:
as soon as I try to work with ppApp, it raises the error. Any ideas anyone?
Code:
Dim ppApp As Microsoft.Office.Interop.PowerPoint.Application = Nothing
Dim prsPres As Microsoft.Office.Interop.PowerPoint.Presentation = Nothing
ppApp = New Microsoft.Office.Interop.PowerPoint.Application
ppApp.Visible = Microsoft.Office.Core.MsoTriState.msoTrue
ppApp.WindowState = Microsoft.Office.Interop.PowerPoint.PpWindowState.ppWindowMinimized
as soon as I try to work with ppApp, it raises the error. Any ideas anyone?