I am working on automating (via JSL) the creation of a powerpoint slide deck, which collects the results of several different reports. I'm using my corporate powerpoint template, and I've made the first slide in the master slides to be the one I want to use for the slides I create with JMP. Here is some example JSL that does this.
_vc1=Variability Chart( Y( :Y ), X( :Level1, :Level2 ), Model( "Nested" ), Std Dev Chart( 0 ) ); r=(_vc1 << Report); r<<Save Presentation("c:/temp/example1.pptx", Template("C:\temp\corporate_template.pptx"), Outline Titles(None), "PNG");
The frustration I am having is that when I create the presentations, the graphics are always aligned on the top center of the slide. What I want is the graphic to be centered in the middle of the slide.
Here is what I get
Here is what I want
Currently I have go through each slide and do this manually. Any suggestions on how to make this happen automatically?
Is there anything in your corporate template that can be set to achieve the alignment you want?
Could you write a Visual Basic macro for PowerPoint?
I could use a macro, but I'd rather no go that step (plus sometimes the save to powerpoint creates more than one graphic image per slide, so that would complicate creating a macro).
I would like to know if there is a way to create the template so that it will do what I want.
When I have had to do what you are requesting, I have created borderless border boxes, placed a spacer box followed by the graph, and then a << get picture of the borderbox, and saved it to my journal. Then when the pptx gets it, the graph ends up centered
I've not had much success with JMP functionality for saving presentations so I take a manual approach. A PPTX file is just a zip file. And from JSL you can read and write to zip files using the ZIP ARCHIVE object. So basically I will have a PPTX file with a slide that acts as my template - it might contain an image in the centre of the slide with drop shadows etc. That image is contained within the zip file - all I need to do is replace that image file with one that I have created based on saving the JMP report content as an image.
There are no labels assigned to this post.