Effacer les filtres
Effacer les filtres

I can't bring powerpoint presention in matlab

2 vues (au cours des 30 derniers jours)
Jiwan Kim
Jiwan Kim le 9 Nov 2018
Modifié(e) : madhan ravi le 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

Réponses (1)

madhan ravi
madhan ravi le 9 Nov 2018
Modifié(e) : madhan ravi le 9 Nov 2018

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by