Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleFollowing the Sample

There is a downloadable SomeFile.zip with completed templates and code. The completed example of the template is available under templates/part2part3_template.pptx. The code for this part of the tutorial can be found in Part3.aspx.cs.

This part focuses on passing a presentation between PowerPointTemplate and PowerPointApplication in order to take advantage of the full range of features available with PowerPointWriter.

Adding to the Template

...

Passing between Template and Application

Add a new slide to the template from Part 2 - Repeat Behavior.

Passing between Template and Application

. This slide will be an extra slide that will not be included in the final presentation. Our template file contains an extra slide with a disclaimer that is not necessary for the presentation. PowerPointApplication has the ability to delete slides from a presentation
The extra slide in the template file look like the following:

Image Added

In order to delete this slide we will be using PowerPointApplication's Delete method. However, we have so far been working only in PowerPointTemplate. PowerPointWriter makes it easy In order to take advantage of all the features of both the Template and Application object models by simply passing between Template and Applicationthe methods in PowerPointApplication, we must first pass the completed template file to PowerPointApplication. This will be done in the code section of this tutorial. See Passing between Template and Application for more information.

The extra slide in the template file look like the following:

Image Removed