MATLAB Answers

Can I nest the function pptpop() in appdesigner and compile it?

11 views (last 30 days)
farzad
farzad on 9 May 2020
Commented: farzad on 12 May 2020
Hi All
I want my compiled app, write outputs , images to powerpoint, and I used the pptpop function in my app that I am gonna compile, but it gives :
Error: Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.

  19 Comments

farzad
farzad on 10 May 2020
I moved the pptpop to a new button, this time the figure pops up and the empty powerpoint is created but still I havethe error
Error using print (line 80)
Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.
Error in pptpop>printPlot (line 183)
print(imgtype, imgname);
Error in pptpop (line 67)
img = printPlot('plot1');
Ameer Hamza
Ameer Hamza on 10 May 2020
farzad, See the attached file. If these seem like the PowerPoint file, you want?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 10 May 2020
R2020a and later:
change line 183,
print(imgtype, imgname);
to
exportgraphics(gcf, imgname)

  7 Comments

Show 4 older comments
Walter Roberson
Walter Roberson on 12 May 2020
I do not have Report Generator; also I am executing on Mac, which cannot talk to PowerPoint .
farzad
farzad on 12 May 2020
The Mac news are very sad. at least I had put the .m file script so someone could have tried that on their PC

Sign in to comment.

More Answers (0)


Translated by