VB - Error On Setting Powerpoint Object Visible

  • Thread starter Thread starter Chris Molland
  • Start date Start date
C

Chris Molland

Hello,

I am creating a small utility to gather the text from a Powerpoint file's
slides and save it into an XML file.

I am using Office 2003. I can create a new Powerpoint object as follows:

oPPTApp = New Powerpoint.Application

but when I reach the next line of code to make oPPTApp visibleas follows:

oPPTApp.Visible = MsoTriState.msoTrue

I get the following error:

Error: HRESULT E_FAIL has been returned from a call to a COM component.

Can anyone advise me what could be causing this. I have tried many
variations of the code, checked the references and cannot seem to solve it.

Many thanks.

Chris
 
Hello Steve,

The application has been written in VB.

It would appear that everything worked fine until a recent XP update.
Following that it began to produce the errors!

Thank you.
 
Back
Top