Tagged: MSDN Sample
Hope you don’t mind this beginner question ?
I am automating a work flow for a reporting system which includes the generation of a powerpoint presentation. I have seen your webcast on presentation templates, and suspect that I will eventually get to that level, but I am the very beginning and am just trying to generate my first presentation as a proof of concept.
I am developing in VB using Visual Studio 2015, and using Version 2.5 of the XML SDK for Microsoft Office. I have development systems on a Windows10 platform and Windows7 platform.
I have followed the MSDN sample “How to: Create a presentation document by providing a file name (Open XML SDK)” MSDN Link.
The code builds ok and runs without error, but the generated presentation is blank, when I open the generated presentation there is one white slide with no visible content. I included a 2nd MSDN example that adds a page to the presentation, and a page does get added (power point indicates 2 pages) but both pages are blank.
I have tried to use the Productivity Tool, but can’t find the problem. One thing that I did notice was that the Document Explorer view in the Productivity Tool looks a bit different than the screenshots from your webcasts. What is different is that there are no Icons in the Document Explorer tree view. This is true even if I open a presentation generated in Powerpoint.
The productivity tool validates the generated document OK.
Any clues on where to look for the problem?
As an update…
I have tried using the MSDN Sample code for adding a slide, to to add a slide to an existing presentation.
When I try to open the modified file, PowerPoint 2013 reports that that it has detected an error and will attempt a fix. The fix happens and a new slide is added.
Any tips would be appreciated.
I didn’t write that code, and don’t know any details about it. It is written in a style that is different from the way I write.
I would take the approach that I showed in the screen-cast.
Alternatively, you could use the OpenXmlRegex module to search/replace content in presentations.
I guess I am looking for example of boiler plate code that generates a PowerPoint File, and the MSDN example produces an error.
Do you have a small VS project that does a simple power point file generation you could share?
Have you seen this screen-cast:
You must be logged in to reply to this topic.