Filter löschen
Filter löschen

I can't bring powerpoint presention in matlab

2 Ansichten (letzte 30 Tage)
Jiwan Kim
Jiwan Kim am 9 Nov. 2018
Bearbeitet: madhan ravi am 9 Nov. 2018
Hello.
I need a help to solve a problem about bringing powerpoint presentaton.
The specific Error is out but I don't know what I should fix.
So I attached my script about it.
----------------------------------------------------------
h = actxserver('PowerPoint.Application');
% Show the PowerPoint window
h.Visible = 1;
writepath='C:\Users\yangchoonghee\Desktop\tcs';
clearppt='clear.pptx';
clearppt = fullfile(writepath,clearppt);
outfileppt = fullfile(writepath, outfileppt);
ppt = actxserver('PowerPoint.Application');
ppt.Visible = 1; % Keep Application Visible
ppt.WindowState = 2; % Minimize PowerPoint window to taskbar
% Open existing presentation:
Clear = invoke(ppt.Presentations,'Open',clearppt);
% Get current number of slides:
slide_count = get(Clear.Slides,'Count');
---------------------------------------------------
In the command window,it represents 'Slide is not defined function or variable' ( slide_count = get(Clear. Slides,'Count');)
I have the clear.ppt which has empty multiple slides.
I tried to figure out what is wrong, but couldn't find an explainable reason.
I am using Matlab version R2016a and R2017a.
Please if anyone knows what I need to do solve this problem, remarks about that.
Any help would be helpful and I will appreciate helping and comments.
Thanks
JW Kim

Antworten (1)

madhan ravi
madhan ravi am 9 Nov. 2018
Bearbeitet: madhan ravi am 9 Nov. 2018

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by