Danilo Mercurio Posted September 27, 2017 Share Posted September 27, 2017 I would like to use the text areas in spotfire to create buttons which generate powerpoint presentations containing some of the visualizations in the DXP file in a customized way. I have already found some scripts in internet on this topic, however I would like to use the company layout for the powerpoint reports. The following code works, however this gives me a blank slide. import clr clr.AddReference("Microsoft.Office.Interop.PowerPoint") import Microsoft.Office.Interop.PowerPoint as PowerPoint #################### # Powerpoint setup pptx = PowerPoint.ApplicationClass() pptx.Visible = True pres=pptx.Presentations.Open("V:..Leo.pptx") slideCounter = 1 slide=pres.Slides.Add(slideCounter, PowerPoint.PpSlideLayout.ppLayoutBlank) Instead of slide=pres.Slides.Add(slideCounter, PowerPoint.PpSlideLayout.ppLayoutBlank) I would like to write something like: slide=pres.Slides.AddSlide(slideCounter, pres.SlideMaster.CustomLayouts(1)) However this gives an error. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted April 26, 2018 Share Posted April 26, 2018 Hello Danilo, Can you try the below and see if it resolves the issue slide=pres.Slides.Add(slideCounter, pres.SlideMaster.CustomLayouts[5]) Link to comment Share on other sites More sharing options...
palak rungta Posted June 24, 2020 Share Posted June 24, 2020 I am also facing a similar issue where this script gives and error. I want to export all the visuals in a single page on one slide. like a snapshot; but cannot find the best way to do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now