Adding media Object to PowerPoint from Matlab
Afficher commentaires plus anciens
I'm getting an error when trying to add a video to PPT from Matlab. This code was given to me by a coworker and it works on his machine. We are both using R2017a, but I am using Windows 10 and he is using Windows 7. I am using PPT version 1908 and he is using version 1808.
The code I'm trying to run looks like this:
Title1 = Slide.Shapes.AddMediaObject2(VideoFile, position(1) , position(2), position(3) , position(4));
Title1.Left = position(1);
Title1.Top = position(2);
Title1.Width = position(3);
Title1.Height = position(4);
I'm getting the following error when running the code:
Error using Interface.91493475_5A91_11CF_8700_00AA0060263B/AddMediaObject2
Error: The remote procedure call failed.
Error in addVideo2PPT (line 79)
Title1 = Slide.Shapes.AddMediaObject2(VideoFile, position(1) , position(2), position(3) , position(4));
1 commentaire
Christopher Heinzen
le 18 Mai 2020
Réponses (0)
Catégories
En savoir plus sur MATLAB Report Generator dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!