Unable to open powerpoint presentation through MATLAB

9 views (last 30 days)
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?

Answers (1)

Image Analyst
Image Analyst on 27 Jun 2014
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 .

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!