VB - Error On Setting Powerpoint Object Visible

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
 
C

Chris Molland

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top