implmenets Powerpoint

N

NigelGomm

hi,

i have an application that automates powerpoint... all is running just
fine... except.....

one customer who has Powerpoint 2003 (which was an upgrade from 2002).

My app gets an error "Type Library PowerPoint.application not found"
creating an eventhandler using

Define Class ppteventhandler As Session
Implements EApplication In "PowerPoint.application"

odd thing is it has already sucessfully done a
createobject("PowerPoint.application")


I wondered if this was a registry issue (esp given the upgrade) so tried
detecting the version and doing a

Define Class ppteventhandler11 As Session
Implements EApplication In "PowerPoint.application.11"

but that fails too.

any ideas?

Nigel
 
P

Peter Huang [MSFT]

Hi Nigel,

What develop language are you using?
It seems that I am not familar with the language.
In common, I think we may try to use the regmon and filemon tool to
troubleshoot which registry key to typelib file our application is trying
to get but failed.
We can find the two tools in the link below.

http://www.sysinternals.com/ntw2k/source/filemon.shtml
http://www.sysinternals.com/ntw2k/source/regmon.shtml

Also if we wants to automation PowerPoint, we just need to CreateObject and
call the PowerPoint application's method via the PPT's object modal, I am
somewhat confused about why you need to implement the Implements
EApplication, did I miss something?

How to automate PowerPoint by using Visual Basic in Office 2003, in Office
XP Developer, and in Office 2000 Developer (222929)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;222929

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
N

NigelGomm

Hi Peter,

this is using Visual Foxpro.

I'm using the implements to create an event handler... when the user presses
save or closes powerpoint my application needs to handle the event (and does
so quite happily on every machine i've tested with and using Powerpoints
2003, 2002 and 2000 ; just this one customer causing problems - so far)

The customer is 'remote' in that they have downloaded a 7-day trial of my
software from download.com so i'm not in a position to have them run too
many diagnostics (i've probably exhausted that getting this far).
I have had them export the registry keys for "Powerpoint.application" and
"Powerpoint.application.11" from HKEY_CLASSES_ROOT and they look fine (well,
the same as mine).

Nigel
 
P

Peter Huang [MSFT]

Hi

I am sorry since I am not familar FoxPro, so I assume the Implement keyword
in foxpro is used to advise the event handle to a com event.
So far it is hard to guess what is happen due to lack of information.
However, I think you may suggest he try to repair re-install the PowerPoint
2003 to reflesh the PPT setting in the registry to see if that works.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
N

NigelGomm

the answer seems to be to use

Implements EApplication in {91493440-5A91-11CF-8700-00AA0060263B}#2.8

which was suggested elsewhere.... i have'nt heard back from the customer
since i sent this so i'm hoping no news is good news.



Nigel
 
P

Peter Huang [MSFT]

Hi

Thanks for your quickly reply!

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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