Why do I get an error from using actxserver​('PowerPoi​nt.Applica​tion')?

I am attempting to use a code that allows me to generate data plots and automatically put them in a PowerPoint presentation. The function in the script that is giving me the most trouble is actxserver. Whenever I try to use it for a PowerPoint application, by typing actxserver('PowerPoint.Application'), it gives me an error that says "Server creation failed. Invalid ProgID 'PowerPoint.Application'". I have PowerPoint installed so I'm not quite sure what the reason for the error is. Any help would be greatly appreciated. Thank you!

답변 (2개)

Guillaume
Guillaume 2018년 7월 10일

0 개 추천

Invalid ProgID 'PowerPoint.Application'
This would indicate that powerpoint is not installed properly.
I think it would be very unlikely that the progID for whichever version of powerpoint you've got installed is not PowerPoint.Application. You could check for sure by doing a search in the registry for Microsoft PowerPoint Application. One of the entries found should have a subkey with the name VersionIndependentProgID which will contain the registered ProgID for powerpoint.

댓글 수: 3

Thanks for the quick reply. I looked in the windows registry and could not find a progid. Maybe I'm looking in the wrong location. I tried to look in Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\PowerPoint and Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\PowerPoint but could not find anything.
Guillaume
Guillaume 2018년 7월 10일
편집: Guillaume 2018년 7월 10일
As I said, the best place to find it is by searching for Microsoft PowerPoint Application. It will not be under HKCU or HKLM. On my machine it is under HKEY_CLASSES_ROOT\Wow6432Node\CSLID\{91493441-5A91-11CF-8700-00AA0060263B}
The node will depend on the bitness of your OS and of Office. The actual CLSID depends on the version of Office.
But as I said, it's unlikely that you got the wrong progid. I'd look into reinstalling powerpoint (or maybe try the office repair assistant).
Thanks again. I was able to find that location and under VersionIndependentProgID it does display PowerPoint.Application. I'll give the office repair assistant a shot as well as trying to reinstall it.

댓글을 달려면 로그인하십시오.

Sean de Wolski
Sean de Wolski 2018년 7월 10일

0 개 추천

You may want to consider looking into MATLAB Report Generator which can generate PPT without even needing powerpoint or being on Windows.

카테고리

도움말 센터 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

제품

릴리스

R2017a

질문:

2018년 7월 10일

답변:

2018년 7월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by