Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating PowerPoint presentations programmatically

Is there a way to programmatically create PowerPoint presentations? If possible, I'd like to use C# and create PowerPoint 2003 presentations.

like image 241
epotter Avatar asked Jan 26 '09 04:01

epotter


People also ask

Can you automate the creation of a PowerPoint?

Yes, it is quite possible to programmatically generate powerpoint presentations, using jscript or vbscript. Microsoft calls it "automation" and the COM moniker to search for is Application.

Can you automate PowerPoint with python?

You can use python-pptx library. It is a Python library for creating and updating PowerPoint (. pptx) files. Thank you for pointing me in the right direction!

How do I make an animated PowerPoint presentation automatically?

Automate Slide AnimationsClick the [Animations] tab > From the "Advanced Animation" group, click "Animation Pane". Right-click the first animation > Select "Start With Previous". This will cause your first animation to start as soon as the slide appears on the screen.

Does PowerPoint have an API?

PowerPoint JavaScript API: The PowerPoint JavaScript API provides strongly-typed objects that you can use to access objects in PowerPoint.


2 Answers

Yes, you can.

You will want to look into MSDN which has a pretty good introduction to it.

I might give you a word of warning, Microsoft Office interop is compatible with an API which is now more than 10 years old. Because of this, it is downright nasty to use sometimes. If you have the money to invest in a good book or two, I think it would be money well spent.

Here's a starting point for you. Use the search feature on MSDN MSDN Webpage. It's good for any Microsoft C# .NET style stuff.

Specifically in regards to your question, this link should help: Automate PowerPoint from C#. EDIT LINK NOW DEAD :(. These two links are fairly close to the original KB article:

Automate Powerpoint from C# 1/2

Automate Powerpoint from C# 2/2

Finally, to whoever downvoted this: We were all learning one day, how to do something as a beginner is most definitely programming related, regardless of how new someone might be.

like image 183
Spence Avatar answered Sep 26 '22 12:09

Spence


OpenXML looks like the way to go from a web app.

Using the interop libraries is not recommended, as others have stated.

like image 28
Todd DeLand Avatar answered Sep 26 '22 12:09

Todd DeLand