Unable to open powerpoint presentation through MATLAB

Here's my system: MATLAB 2014a Windows 7 64 bit Office 2010
I'm unable to start up and open a powerpoint via methods that worked in XP/office 2010/MATLAB 2007a.
Here's the code:
ppt=actxserver('PowerPoint.Application');
op=invoke(ppt.Presentations,'Open','blah.ppt',[],[],0);
The ppt presentation errors out with:
Error:Dispatch.
Unspecified Error
'blah.ppt' does exist. This works on previous versions, I can't figure out why it won't work on mine. Other commands appear to work,
ppt.Visible=1;
ppt.Help;
All do what they should. Is there some syntax change that I'm unaware of?

Antworten (1)

Image Analyst
Image Analyst am 27 Jun. 2014

0 Stimmen

Looks like the file does not exist. Try passing in the full file name. Use fullfile() and then exist() to test it. Or try using the Open method rather than the invoke function .

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 26 Jun. 2014

Beantwortet:

am 27 Jun. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by