3

I have an app that creates powerpoints. Everything goes well except that every time I want to open one of these powerpoints it opens it in the slide master view. This isn't necessarily a problem per se, but just annoying since I open a lot of these powerpoint files. Has anyone else encountered this? Any idea what this is due to?

This happens on both mac and windows.

I create a presentation from a template, generate the slides and then save it more or less like this:

self.prs = Presentation(
            self.template_path)
for c, slide in enumerate(self.data):
    self.generate_slide(slide)
self.prs.save(save_location)
Ludo
  • 2,307
  • 2
  • 27
  • 58
  • 1
    Could it be a problem with the template? Have you tried your code with a different template or no template? – Jonathon Reinhart Nov 28 '18 at 12:15
  • @Ludo: can you guide as to how to make use of template to create a new pptx entirely? Right now i am able to create a ppt from blank presentation but not from existing presentation. – RSM Jan 02 '20 at 09:36
  • @RSM just instantiate your presentation with a filename for eg `prs = Presentation('existing-prs-file.pptx')` . If that doesn't work ask a new question and I or someone else can answer it. – Ludo Jan 03 '20 at 10:12
  • @Ludo: I have asked this question here. https://stackoverflow.com/q/59561983/6389099 – RSM Jan 03 '20 at 14:06

1 Answers1

3

I had this issue before, it was because the template slide was saved in the slide master view same as what Johnathon said.

Saleh
  • 173
  • 2
  • 12