Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

What is the best solution to create power point document programmatically?

$
0
0

I'm new to Open Xml SDK. I want to dynamically create PPTX document via C#. Is OpenXml SDK the good choice for creating power point document? 

On MSDN link https://msdn.microsoft.com/en-us/library/office/gg278317.aspx, it tells how to create a pptx from the scratch. It only has one slide without any content. The code is over 250 lines. It has to create each xml element required, like ColorScheme, Dark1Color,  CommonSlideData,  ApplicationNonVisualDrawingProperties, etc.

Then I found sample code using Office interops. To create one slide pptx with some notes, it only uses 40 lines of code. It only uses Microsoft.Office.Interop.PowerPoint.Presentation, Slides, _Slide, TextRange, CustomLayout. I don't need to deal with all those xml elements.

So I wonder which one is the better choice for creating pptx programmatically? I see everybody mentions open xml sdk. But creating a complex power point document programmatically requires a very length code. Do we have other better solutions that just deal with objects directly without touching any xml elements?

Thanks for your input!!!


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>