How to place image files in either side of "Two Column" PowerPoint template using Report Generator?
이전 댓글 표시
Good morning,
I'm trying to use Report Generator with the PowerPoint API to code a repetative task of populating specific PNG image files in a PowerPoint presentation on multiple pages by placing image files in each side of "Two Column" PowerPoint template using Report Generator. I searched the documentation for how to create the placeholder for the left and right hand column of the slide, but couldn't find one. Below is the code I tried but the placeholder on line 5 is empty. Searching for "Two Content" also fails.
There may be other issues with this code on following lines. Please help if you can on this basic step. I will also appreciate help in sizing the left and right hand images to the slide edge on each side (6.5 x 6.5 in).
Thank you,
Phil
import mlreportgen.ppt.*
ppt = Presentation("WindPlots_TwoContent.pptx");
open(ppt);
slide1 = add(ppt, "Two Content");
content_placeholders = find(slide1, "Content");
img1 = "Wind_JulDec_2009.png";
left_content_ph = content_placeholders(1);
replace(left_content_ph, "Two Content", Picture("img1"));
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Create Presentation Content에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!