Page tree
Skip to end of metadata
Go to start of metadata

Description

This sample demonstrates how to use PowerPointWriter's CopySlide method and Slide Data Binding Property to copy slides and bind them with different data. This makes it easy to programmatically create multiple slides with the same layout in your presentation.
Icon

This sample stores some of the data in a CSV file, which is available for download under Downloads. The CSV parser used in the example code was developed by Andrew Rissing and can be downloaded from Code Project.

The Template

Our template presentation contains a single slide with 2 data markers.

The Code

The code below uses PowerPointApplication to copy the slide in our template, then passes the presentation to PowerPointTemplate to bind the data.

Result

The resulting output is a presentation containing 2 slides with the same layout but different data.

Downloads

data:Team.csv Agile.csv
template:template.pptx
output: output.pptx

  • No labels