Page tree

Versions Compared

Key

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

...

We are going to start with the template file as it was at the end of Part 1.
1. Add a new slide with the title 'Team Members'. This slide will contain data from the 'Team' data source about the proposed team members for the new project.

The In Part 1, our data source only contained a single row of data. However, the 'Team' data source contains multiple rows of data that we wish to import into the presentation. In order for multiple rows of data to be imported using a data marker, the data marker must be placed in a list entry or table row. The list or table will expand dynamically to hold all of the imported rows.
For more information see Importing Multiple Rows of Data

...

The 'Cost' data source contains more data than can fit on to a single slide. In order to ensure that data does not fall off of a slide, the Data Binding Property MaxRowsPerSlide can be set. When importing data, PowerPointWriter will stop importing data onto a slide when it reaches the MaxRowsPerSlide limit.

Additionally, we want to be sure that all the data from the 'Cost' data source is imported into our presentation. To do this the RepeatSlide marker can be used in conjunction with the MaxRowsPerSlide property.
When placed as the first item in the notes section of the slide, the RepeatSlide marker will copy that slide in place and continue importing data on to the new slide. This behavior will continue until the end of the data source or the MaxRowsToImport limit is reached.
For more information see Fitting Data on to Multiple Slides.

...

2. Set the MaxRowsPerSlide property to be 10.

Code Block
dataProps.MaxRowsPerSlieMaxRowsPerSlide = 10;

3. Bind the Team and Cost data sets to the template

...