Rank: 1149 based on 122 downloads (last 30 days) and 1 file submitted
photo

Dmitriy Aronov

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Dmitriy Aronov
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Feb 2011 Screenshot Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov powerpoint, graphics export, external application ..., tex, latex, ppt 122 29
  • 4.88235
4.9 | 18 ratings
Comments and Ratings on Dmitriy Aronov's Files View all
Updated File Comment by Comments Rating
23 Jun 2014 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov Cris

I just found this nice workaround Eric Sampson posted in the comments to 'saveppt2' to work flawlessly with 'pptfigure' and PowerPoint 2013 as well.

Here follows his orginal comment:

----

Hi all, for those of you who are encountering an error when using this function with PowerPoint 2013, to correct this issue you can replace the following line:
pic1 = invoke(new_slide.Shapes,'Paste');

with the following two lines:

picShapeRange = invoke(new_slide.Shapes,'Paste');
pic1 = invoke(picShapeRange,'Item',1);

This fix will still work when using older versions of PowerPoint.

----

Everything I did was to modify it as follows and everything worked as before:

picShapeRange = invoke(new_slide.Shapes,'Paste'); % or: picShapeRange = invoke(slide.Shapes,'PasteSpecial', 3); (as required)
pic = invoke(picShapeRange,'Item',1);

Best regards,
Cris

19 Jun 2014 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov Laurel

Not yet... I can only get this working by having a 2007 Powerpoint open, then converting the slide to PowerPoint 2013. It's not exactly elegant but it does work. The issue seems to be the call to actxserver is designed to work with an older version of ppt.

19 Jun 2014 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov Yair Churi

Laurel, its seems like I am seeing the same failure. Were you able to resolve this?

Error using Interface.9149347A_5A91_11CF_8700_00AA0060263B/get
Error: Object returned error code: 0x800A01A8

Error in pptfigure (line 564)
metaWidth = get(pic,'Width');

10 Jun 2014 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov Laurel

I am having the same issue as Diego.
I am running Matlab R2014a on a Windows 7 OS, trying to interact with Powerpoint 2013.
I get the following error:

Error using Interface.Microsoft_PowerPoint_12.0_Object_Library.ShapeRange/get
Error: Object returned error code: 0x800A01A8

Error in pptfigure (line 564)
metaWidth = get(pic,'Width');

Error while evaluating uipushtool ClickedCallback

Does anyone know what changed with the newer PPT versions? I would really like to use this function.

24 Apr 2014 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov Julian Hapke

I think the feature('COM_SafeArraySingleDim', 1)
should be reset to 0 when the function is done, so matlabs default behavior is restored

Contact us